From owner-freebsd-net@FreeBSD.ORG Tue Oct 21 12:36:05 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE845106567E for ; Tue, 21 Oct 2008 12:36:05 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (stalker.stu.cn.ua [195.69.76.130]) by mx1.freebsd.org (Postfix) with ESMTP id 11D498FC28 for ; Tue, 21 Oct 2008 12:36:04 +0000 (UTC) (envelope-from spamd@stu.cn.ua) Received: from stu.cn.ua (localhost [127.0.0.1]) by stu.cn.ua (Postfix) with ESMTP id D4059245260 for ; Tue, 21 Oct 2008 15:19:01 +0300 (EEST) Received: by stu.cn.ua (Postfix, from userid 58) id B991224525E; Tue, 21 Oct 2008 15:19:01 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on stalker.stu.cn.ua X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.5 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_PASS autolearn=ham version=3.2.5 Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by stu.cn.ua (Postfix) with ESMTP id B3BD0244DA3 for ; Tue, 21 Oct 2008 15:00:44 +0300 (EEST) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 8B05A16356D; Tue, 21 Oct 2008 12:00:20 +0000 (UTC) (envelope-from owner-freebsd-net@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id EF87910656D3; Tue, 21 Oct 2008 12:00:19 +0000 (UTC) (envelope-from owner-freebsd-net@freebsd.org) From: freebsd-net-request@freebsd.org To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-net@freebsd.org Errors-To: owner-freebsd-net@freebsd.org Message-Id: <20081021120019.EF87910656D3@hub.freebsd.org> Date: Tue, 21 Oct 2008 12:00:19 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP on stalker.stu.cn.ua X-Mailman-Approved-At: Tue, 21 Oct 2008 13:12:06 +0000 Subject: freebsd-net Digest, Vol 290, Issue 2 X-BeenThere: freebsd-net@freebsd.org Reply-To: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 12:36:06 -0000 Send freebsd-net mailing list submissions to freebsd-net@freebsd.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.freebsd.org/mailman/listinfo/freebsd-net or, via email, send a message with subject or body 'help' to freebsd-net-request@freebsd.org You can reach the person managing the list at freebsd-net-owner@freebsd.org When replying, please edit your Subject line so it is more specific than "Re: Contents of freebsd-net digest..." Today's Topics: 1. Re: Closing connection from an accept_filter(9) (Alfred Perlstein) 2. Re: Timers in drivers vs userland (Alfred Perlstein) 3. Routing table issue (Alexander Motin) ---------------------------------------------------------------------- Message: 1 Date: Mon, 20 Oct 2008 10:37:40 -0700 From: Alfred Perlstein Subject: Re: Closing connection from an accept_filter(9) To: freebsd-net@freebsd.org Message-ID: <20081020173740.GK22503@elvis.mu.org> Content-Type: text/plain; charset=us-ascii * David DeSimone [081018 02:25] wrote: > Eugene M. Kim wrote: > > > > Is it possible to close a connection from an accept filter, for > > example, in order to prevent an incoming connection with a malformed > > request body from ever reaching the userland? > > How would you propose to find out what is in the request body without > first accepting the connection? By writing a custom accept filter! :) -Alfred ------------------------------ Message: 2 Date: Mon, 20 Oct 2008 10:39:38 -0700 From: Alfred Perlstein Subject: Re: Timers in drivers vs userland To: Len Gross Cc: "freebsd-net@freebsd.org" Message-ID: <20081020173938.GL22503@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Have you tried using rtprio? You'll have to be really careful though so as not to jam up the system using it. -Alfred * Len Gross [081018 17:28] wrote: > Slight correction; I should have said more accurate usleep, not "timer." > > -- Len > > On Sat, Oct 18, 2008 at 3:12 PM, Len Gross wrote: > > If I place a timer directly in a driver (like Ethernet) will it be > > subject to less jitter and more consistency than if it were in > > Userland? > > > > I know FreeBSD is not "real time," but I need to be able to run a > > polling algorithm with about 1 ms accuracy. > > > > Thanks in advance. > > > > (Please tell me if there is a better list for this question.) > > > > -- Len > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- - Alfred Perlstein ------------------------------ Message: 3 Date: Mon, 20 Oct 2008 20:01:13 +0300 From: Alexander Motin Subject: Routing table issue To: freebsd-net@freebsd.org Message-ID: <48FCB959.1010105@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed I have noticed one strange issue on recent 7-STABLE/8-CURRENT: - this works: %route add 10.0.0.0/8 192.168.3.1 add net 10.0.0.0: gateway 192.168.3.1 %route add 10.0.0.0/9 192.168.3.2 add net 10.0.0.0: gateway 192.168.3.2 - this doesn't: %route add 0.0.0.0/0 192.168.3.1 add net 0.0.0.0: gateway 192.168.3.1 %route add 0.0.0.0/1 192.168.3.2 route: writing to routing socket: File exists add net 0.0.0.0: gateway 192.168.3.2: route already in table Who wants to explain me why 0.0.0.0/0 and 0.0.0.0/1 is now the same? PS: Same test on 6.2 works fine. -- Alexander Motin ------------------------------ _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" End of freebsd-net Digest, Vol 290, Issue 2 *******************************************