[ILUG-BOM] howto use tcpdump, was kget can resume downloads, other download managers can't

shirish shirishag75 at gmail.com
Tue Jan 27 10:01:15 IST 2009


Reply in-line :-

On Tue, Jan 27, 2009 at 02:30, steve <steve at lonetwin.net> wrote:

<snip>

> If you really want to get to the bottom of this, I'd suggest running tcpdump
> (normally, i use the options tcpdump -s0 -w <output>.cap host <youripaddress>)
> and then reading the capture file using wireshark, both with kget and with wget.

<snip>

Hi Steve,
   sorry for jumping on the thread. I am on kernel 2.6.27 and there is
a big possibility  I haven't really understood your command.

You gave

tcpdump -s0 -w <output>.cap host <youripaddress>

I used :-

tcpdump -s0 -w output.cap host 59.95.28.28

(ouput.cap most probably is a file-name and the IP Address is the IP
Address being assigned by my provider)

but both for this I get

tcpdump: no suitable device found

Doing a cursory look at dmesg came across this .

[37479.042325] tcpdump uses obsolete (PF_INET,SOCK_PACKET)

My ifconfig.

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:95:44:10:db
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:18 Base address:0xc800

eth1      Link encap:Ethernet  HWaddr 00:08:a1:92:56:33
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::208:a1ff:fe92:5633/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1990826 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2204997 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1271599953 (1.2 GB)  TX bytes:537487624 (537.4 MB)
          Interrupt:22 Base address:0xcc00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:556 errors:0 dropped:0 overruns:0 frame:0
          TX packets:556 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:50924 (50.9 KB)  TX bytes:50924 (50.9 KB)

As can be seen the active connection here is eth1.

The connection is between ethernet card and router.

> regards,
> - steve

-- 
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


More information about the Linuxers mailing list