Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Dec 2015 09:58:35 +0300
From:      Alexander V. Chernikov <melifaro@ipfw.ru>
To:        "elof2@sentor.se" <elof2@sentor.se>, freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: ngrep/ixgbe bpf bug
Message-ID:  <944961448953115@web11h.yandex.ru>
In-Reply-To: <alpine.BSF.2.00.1511301707450.54839@farmermaggot.shire.sentor.se>
References:  <alpine.BSF.2.00.1511051551350.49057@farmermaggot.shire.sentor.se> <alpine.BSF.2.00.1511301707450.54839@farmermaggot.shire.sentor.se>

next in thread | previous in thread | raw e-mail | index | archive | help
Do you have vlans on top of ixgbe?
And actually I wonder what does tcpdump show for the same expression.
( and tcpdump -i ixX -lnes0 might provide good traces on what is going on)

30.11.2015, 19:09, "elof2@sentor.se" <elof2@sentor.se>:
> No one has a theory?
>
> /Elof
>
> On Thu, 5 Nov 2015, elof2@sentor.se wrote:
>
>> šHi all!
>>
>> šWhy don't ngrep work on ix interfaces?
>>
>> šIt shows nice values if I sniff on other interfaces, e.g. igb0 and
>> šbridge0:
>>
>> š# ngrep -d igb0 "q" ip
>> šI see some matching packets. Everything looks good.
>>
>> š# netstat -B
>> ššPid Netif Flags Recv Drop Match Sblen Hblen Command
>> š1800 igb0 p--s--- 135 0 129 380 0 ngrep
>> šThe BPF stats show Recv and Match values. Good.
>>
>> š# ngrep -d bridge0 "q" ip
>> ššI see some matching packets. Good.
>>
>> š# netstat -B
>> ššPid Netif Flags Recv Drop Match Sblen Hblen Command
>> š1901 bridge0 p--s--- 661897 0 659170 425606 0 ngrep
>> šAgain, the BPF stats show Recv and Match values. Good.
>>
>> šHowever, if I sniff on an ix interface:
>>
>> š# ngrep -d ix1 "q" ip
>> šI get no matching packets!
>>
>> š# netstat -B
>> ššPid Netif Flags Recv Drop Match Sblen Hblen Command
>> š1816 ix1 p--s--- 45340 0 0 0 0 ngrep
>> šššššššššššššššššššššššššššššššššššššššššššššššš^^^
>> š...and the BPF stats always show zero Matches.
>>
>> šBug in the ixgbe driver or in ngrep?
>>
>> š/Elof
>>
>> š_______________________________________________
>> šfreebsd-net@freebsd.org mailing list
>> šhttps://lists.freebsd.org/mailman/listinfo/freebsd-net
>> šTo unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?944961448953115>