Date: Mon, 9 Jan 2012 12:19:58 GMT From: Eugen Konkov <Eugen.Konkov@freeline.in.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/163955: input packet for interface are counted twice Message-ID: <201201091219.q09CJw2u079170@red.freebsd.org> Resent-Message-ID: <201201091220.q09CKCxV013249@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163955 >Category: ports >Synopsis: input packet for interface are counted twice >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 09 12:20:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eugen Konkov >Release: 9.0-RELEASE >Organization: ISP FreeLine >Environment: # uname -a FreeBSD 9.0-RELEASE FreeBSD 9.0-RELEASE #0 r229830: Mon Jan 9 02:53:51 EET 2012 :/usr/obj/usr/src.svn/9.0.0/sys/KES_KERN_v9 i386 >Description: input packets for interface are counted twice. packed are twiced for all interfaced in system. >How-To-Repeat: # get stat by snmp: octetsIn:24526413 octetsOut:37921853 packetsIn:46927 packetsOut:72314 # ping -c 3 10.11.19.145 PING 10.11.19.145 (10.11.19.145): 56 data bytes 64 bytes from 10.11.19.145: icmp_seq=0 ttl=64 time=0.222 ms 64 bytes from 10.11.19.145: icmp_seq=1 ttl=64 time=0.393 ms 64 bytes from 10.11.19.145: icmp_seq=2 ttl=64 time=0.385 ms --- 10.11.19.145 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.222/0.333/0.393/0.079 ms octetsIn:24526707 octetsOut:37922147 packetsIn:46933 packetsOut:72317 diff: 294 294 6 3 as you can notice octets are same, but input packets counted twice # tcpdump -n -i vlan7 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on vlan7, link-type EN10MB (Ethernet), capture size 65535 bytes 14:05:48.826901 IP 10.11.19.149 > 10.11.19.145: ICMP echo request, id 39685, seq 0, length 64 14:05:48.827092 IP 10.11.19.145 > 10.11.19.149: ICMP echo reply, id 39685, seq 0, length 64 14:05:49.827133 IP 10.11.19.149 > 10.11.19.145: ICMP echo request, id 39685, seq 1, length 64 14:05:49.827485 IP 10.11.19.145 > 10.11.19.149: ICMP echo reply, id 39685, seq 1, length 64 14:05:50.827370 IP 10.11.19.149 > 10.11.19.145: ICMP echo request, id 39685, seq 2, length 64 14:05:50.827718 IP 10.11.19.145 > 10.11.19.149: ICMP echo reply, id 39685, seq 2, length 64 ^C 6 packets captured 6 packets received by filter 0 packets dropped by kernel >Fix: there were patch in current for vlan: output packets were not couted at all. Maybe this is related issue >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201091219.q09CJw2u079170>