From owner-freebsd-net@FreeBSD.ORG Wed Aug 4 16:20:17 2004 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 EA79C16A4CE for ; Wed, 4 Aug 2004 16:20:17 +0000 (GMT) Received: from mail.star-sw.com (mail.star-sw.com [217.195.82.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3839D43D67 for ; Wed, 4 Aug 2004 16:20:17 +0000 (GMT) (envelope-from nkritsky@star-sw.com) Received: from ARGON.star-sw.com (argon.star-sw.com [217.195.82.10]) by mail.star-sw.com (8.12.11/8.12.11) with ESMTP id i74GKFFK063541; Wed, 4 Aug 2004 20:20:15 +0400 (MSD) Received: from ibmka.star-sw.com ([192.168.32.130]) by ARGON.star-sw.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 4 Aug 2004 20:20:15 +0400 Date: Wed, 4 Aug 2004 20:20:15 +0400 From: "Nickolay A. Kritsky" X-Mailer: The Bat! (v1.49) Personal X-Priority: 3 (Normal) Message-ID: <23479095359.20040804202015@star-sw.com> To: Pawel Malachowski In-reply-To: <20040803200836.GB52816@shellma.zin.lublin.pl> References: <20040803141731.GA52816@shellma.zin.lublin.pl> <158405216250.20040803234857@star-sw.com> <20040803200836.GB52816@shellma.zin.lublin.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Aug 2004 16:20:15.0531 (UTC) FILETIME=[ECF5CFB0:01C47A3E] cc: freebsd-net@freebsd.org Subject: Re[2]: ethernet over ip X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Nickolay A. Kritsky" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 16:20:18 -0000 Hello Pawel, Thanks, everything solved. There was a problem with 'reusing' tap(4) interface. While tapclose() zeroes IFF_RUNNING flag, tapopen() does not set it back to 1. I am not sure if it is bug or feature, but taking a quick look on code in the latest revision shows the same. Wednesday, August 04, 2004, 12:08:36 AM, Pawel Malachowski wrote: PM> On Tue, Aug 03, 2004 at 11:48:57PM +0400, Nickolay A. Kritsky wrote: >> bash-2.05b# head -c 100 /dev/tap0 |less PM> Try tcpdump instead. -- Best regards, ; Nickolay A. Kritsky ; SysAdmin STAR Software LLC ; mailto:nkritsky@star-sw.com