From owner-freebsd-net@FreeBSD.ORG Sat May 21 18:06:43 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 B4AFE16A4CF for ; Sat, 21 May 2005 18:06:43 +0000 (GMT) Received: from web53909.mail.yahoo.com (web53909.mail.yahoo.com [206.190.36.219]) by mx1.FreeBSD.org (Postfix) with SMTP id 09F3143D53 for ; Sat, 21 May 2005 18:06:43 +0000 (GMT) (envelope-from fetrovsky@yahoo.com) Received: (qmail 43877 invoked by uid 60001); 21 May 2005 18:06:42 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Nupf0ULvFTriaFtwdKXDD88fOsEJ6Y274padaywdczGG5t8yyCtsLjDX0mSIOGZj+lkP98ShM0GZrutv5+3PIvxJpBtPvNl36hsJfrK/xLYExU8wRnJUawOnpUDERn3oXD58vcfLPqx0DDYG7CgOsGaoBBMkekeoZzk2ss/PoUA= ; Message-ID: <20050521180642.43875.qmail@web53909.mail.yahoo.com> Received: from [128.195.64.98] by web53909.mail.yahoo.com via HTTP; Sat, 21 May 2005 11:06:42 PDT Date: Sat, 21 May 2005 11:06:42 -0700 (PDT) From: Daniel Valencia To: freebsd-net@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: sending MAC packets --- again, and again 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: Sat, 21 May 2005 18:06:43 -0000 Hello --- Charles Swiger wrote: > pcap_dispatch() will not > necessarily > return when the read times out; on some > platforms, the read > timeout > isn't supported, and, on other platforms, > the timer doesn't > start until > at least one packet arrives. This means If I read this correctly, pcap will sometimes wait forever until a packet appears, which I don't actually mind because it's actually the behaviour that I'm expecting. What is really odd is that even when packets ARE arriving, pcap_loop just sits there, lets the packets pile up, and then shows all the messages at once... then it blocks again for a while, even as I send messages from the other computer, just to show them all at once again, and so on... > you'll probably find yourself either going > multithreaded or using I'm actually going multithreaded, but I'd expect a packet to show up immediately, so I can process it and perform the routing in a timely manner, rather than delivering a packet a minute after it was sent. Thank you very much! - Daniel __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail