miwarin / netbsd-gnats-memo

0 stars 0 forks source link

bin/48005 tcpdump: option -C broken #19

Open miwarin opened 9 years ago

miwarin commented 9 years ago

http://gnats.netbsd.org/48005

再現せず。

一般ユーザーで実行するとエラーになる

rin@mogu[~]% tcpdump -w tcp.dump -C 1
tcpdump: no suitable device found

root で実行する。しばらく放置。tcp 通信すればいいのか?

% su -
mogu# tcpdump -w tcp.dump -C 1
tcpdump: listening on pcn0, link-type EN10MB (Ethernet), capture size 65535 bytes
tcpdump: tcp.dump1: Permission denied

とくに何もエラーない

$ tcpdump -r tcp.dump | head
reading from file tcp.dump, link-type EN10MB (Ethernet)
23:36:52.774579 IP 192.168.0.23.ssh > 192.168.0.14.55745: Flags [P.], seq 3169420312:3169420364, ack 3762266816, win 4197, length 52
23:36:52.774612 IP 192.168.0.14.55745 > 192.168.0.23.ssh: Flags [.], ack 52, win 16196, length 0
23:36:52.774725 IP 192.168.0.23.ssh > 192.168.0.14.55745: Flags [P.], seq 52:168, ack 1, win 4197, length 116
23:36:52.924033 IP 192.168.0.14.56721 > 210.157.200.249.http: Flags [.], seq 3259149102:3259149103, ack 3440780618, win 16474, length 1
23:36:52.939385 IP 210.157.200.249.http > 192.168.0.14.56721: Flags [.], ack 1, win 490, options [nop,nop,sack 1 {0:1}], length 0
23:36:52.974156 IP 192.168.0.14.55745 > 192.168.0.23.ssh: Flags [.], ack 168, win 16167, length 0
23:36:53.325059 IP6 fe80::d589:db92:9394:2dce.62234 > ff02::c.ssdp: UDP, length 146
23:36:53.489681 IP r-199-59-148-241.twttr.com.https > 192.168.0.14.51274: Flags [P.], seq 3486761921:3486761958, ack 3621389304, win 70, length 37
23:36:53.492071 IP r-199-59-148-241.twttr.com.https > 192.168.0.14.51274: Flags [.], seq 37:1451, ack 1, win 70, length 1414
23:36:53.492072 IP r-199-59-148-241.twttr.com.https > 192.168.0.14.51274: Flags [P.], seq 1451:2250, ack 1, win 70, length 799