From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 28 00:37:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B5E116A422 for ; Sun, 28 Aug 2005 00:37:24 +0000 (GMT) (envelope-from freebsd@irbis.net.ru) Received: from mail.irbis.net.ru (mail.irbis.net.ru [62.183.127.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B489B43DC0 for ; Sun, 28 Aug 2005 00:18:37 +0000 (GMT) (envelope-from freebsd@irbis.net.ru) Received: by mail.irbis.net.ru (Postfix, from userid 106) id DDD6B7303E; Sun, 28 Aug 2005 04:18:34 +0400 (MSD) Received: from crsd.irbis.net.ru (crsd.irbis.net.ru [192.168.0.64]) by mail.irbis.net.ru (Postfix) with ESMTP id AC85B7303B for ; Sun, 28 Aug 2005 04:18:31 +0400 (MSD) From: Yuri Pankov To: freebsd-hackers@freebsd.org Date: Sun, 28 Aug 2005 04:18:26 +0400 User-Agent: KMail/1.8.2 Organization: Irbis Telecommunications, JSC MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508280418.26456.freebsd@irbis.net.ru> Subject: libpcap and interface with no IPv4 address X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2005 00:37:24 -0000 Hi, tcpdump (and other programs using libpcap with IP proto filter) behaves strangely (as it seems to me) on an interface with no IPv4 address assigned.. tcpdump -ni xl0 tcpdump: WARNING: xl0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes 04:08:01.207673 IP 62.183.127.130.49192 > 85.118.141.1.80: . ack 4143124359 win 33304 04:08:01.209350 IP 62.183.127.130.49192 > 85.118.141.1.80: P 0:609(609) ack 1 win 33304 04:08:01.415512 IP 62.183.127.130.49192 > 85.118.141.1.80: . ack 989 win 33060 04:08:01.418589 IP 62.183.127.130.49192 > 85.118.141.1.80: . ack 1989 win 33054 04:08:01.421370 IP 62.183.127.130.49192 > 85.118.141.1.80: . ack 2989 win 33054 04:08:01.424297 IP 62.183.127.130.49192 > 85.118.141.1.80: . ack 3989 win 33054 etc. and using tcpdump -ni xl0 ip (any IP proto related filter here) gives no output at all besides the warning line and info. host must just collect IP packets, which are copied to this interface from another port. can this be solved? and any reason if not. FreeBSD-5 with tcpdump version 3.8.3 +libpcap version 0.8.3 FreeBSD-6 with tcpdump version 3.9.1 + libpcap version 0.9.1