From owner-freebsd-net@FreeBSD.ORG Tue Jan 25 15:03:08 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC7D716A4CE for ; Tue, 25 Jan 2005 15:03:08 +0000 (GMT) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8097E43D1D for ; Tue, 25 Jan 2005 15:03:08 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id B49AC2BBE08 for ; Tue, 25 Jan 2005 16:03:07 +0100 (CET) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id EB360408E; Tue, 25 Jan 2005 16:02:55 +0100 (CET) Date: Tue, 25 Jan 2005 16:02:55 +0100 From: Jeremie Le Hen To: freebsd-net@freebsd.org Message-ID: <20050125150255.GE59685@obiwan.tataz.chchile.org> References: <20050124212011.GC59685@obiwan.tataz.chchile.org> <20050125011615.GB47638@dhcp120.icir.org> <20050125143327.GD59685@obiwan.tataz.chchile.org> <20050125144153.GJ47638@dhcp120.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050125144153.GJ47638@dhcp120.icir.org> User-Agent: Mutt/1.5.6i cc: Jeremie Le Hen Subject: Re: gif(4) and bpf(4) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 25 Jan 2005 15:03:08 -0000 > Try tcpdump -L -i gif0 on the affected system and post what you get. You > might need to install the port if the base system tcpdump doesn't > have the -L option. > > If you get a list of encapsulations back, try using them with the -y > option,,e.g.: > tcpdump -y null -i gif0 I need indeed tcpdump port. But unfortunately, it did not work. Here is the typescript: %%% yoda:root# ping 192.168.4.13 >/dev/null 2>&1 & [1] 53373 yoda:root# /usr/local/sbin/tcpdump -L -i gif0 Data link types (use option -y to set): NULL (BSD loopback) yoda:root# /usr/local/sbin/tcpdump -y null -i gif0 tcpdump: data link type null tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on gif0, link-type NULL (BSD loopback), capture size 96 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel yoda:root# /usr/local/sbin/tcpdump -ni ep0 esp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ep0, link-type EN10MB (Ethernet), capture size 96 bytes 15:59:24.708405 IP xx.xx.xx.xx > yy.yy.yy.yy: ESP(spi=0x0c988eaf,seq=0x1f3) 15:59:24.746374 IP yy.yy.yy.yy > xx.xx.xx.xx: ESP(spi=0x0cb31758,seq=0x1f0) 15:59:25.728390 IP xx.xx.xx.xx > yy.yy.yy.yy: ESP(spi=0x0c988eaf,seq=0x1f4) 15:59:25.766083 IP yy.yy.yy.yy > xx.xx.xx.xx: ESP(spi=0x0cb31758,seq=0x1f1) ^C 4 packets captured 83 packets received by filter 0 packets dropped by kernel %%% Does any one have other ideas ? It seems the code was partly written by sam@, brooks@ and shin@. Best regards, -- Jeremie Le Hen jeremie@le-hen.org