From owner-freebsd-net@freebsd.org Tue Dec 1 06:58:49 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 045E4A3D1A5 for ; Tue, 1 Dec 2015 06:58:49 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward14h.cmail.yandex.net (forward14h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::9f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1B001A19 for ; Tue, 1 Dec 2015 06:58:48 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from web11h.yandex.ru (web11h.yandex.ru [84.201.186.40]) by forward14h.cmail.yandex.net (Yandex) with ESMTP id 97EAB20D57; Tue, 1 Dec 2015 09:58:36 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web11h.yandex.ru (Yandex) with ESMTP id D7FCA1225CD; Tue, 1 Dec 2015 09:58:35 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfw.ru; s=mail; t=1448953116; bh=zs9xAr34S8gVYrFlDjwT6SXJwdCB9l5AQIkHKVIL61s=; h=From:To:In-Reply-To:References:Subject:Date; b=Zf/0lnmhH8m4zZTBkfYTgbIRcOVSsIiBvsGprOwbfTCj9RnWg8HxVV6EJVmmfn2OV wIMl1etOuzUxw7fNR/2pUQ31lg+F6I15hemFumvp3CLK+qQtDDmtQ3y4u44GQfbsyF TvNL4vBQKH4cLYDpmwxeWPFyXesM7ihZ25bSHg24= Received: by web11h.yandex.ru with HTTP; Tue, 01 Dec 2015 09:58:35 +0300 From: Alexander V. Chernikov To: "elof2@sentor.se" , freebsd-net In-Reply-To: References: Subject: Re: ngrep/ixgbe bpf bug MIME-Version: 1.0 Message-Id: <944961448953115@web11h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 01 Dec 2015 09:58:35 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 06:58:49 -0000 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" : > 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"