From owner-freebsd-net@FreeBSD.ORG Fri Dec 12 17:19:30 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 7958A106568D for ; Fri, 12 Dec 2008 17:19:30 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id E2F8B8FC1A for ; Fri, 12 Dec 2008 17:19:29 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-037-182.pools.arcor-ip.net [88.66.37.182]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1LBBfk2a9w-0002Cd; Fri, 12 Dec 2008 18:19:28 +0100 Received: (qmail 73472 invoked from network); 12 Dec 2008 17:19:28 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by mx.laiers.local with SMTP; 12 Dec 2008 17:19:28 -0000 From: Max Laier Organization: FreeBSD To: Randall Stewart Date: Fri, 12 Dec 2008 18:19:27 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <200812111412.16757.max@love2party.net> <11F9C4F4-E893-46DA-96C3-1984131159D6@lakerest.net> In-Reply-To: <11F9C4F4-E893-46DA-96C3-1984131159D6@lakerest.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812121819.27990.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18YhzMOgoHThNWg9Spu7GgipvDMtj5Aj/Hm5Mq 6psJ1K0WtUPMIQGVKb2KY/vryd/syEQIKA57cdBXmNhI8Y4qSq DRX1oD+Ikft+TOVRzR5FA== Cc: freebsd-net@freebsd.org Subject: Re: Heads up --- Thinking about UDP and tunneling X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 17:19:30 -0000 On Friday 12 December 2008 13:56:38 Randall Stewart wrote: > On Dec 11, 2008, at 8:12 AM, Max Laier wrote: > > On Thursday 11 December 2008 13:50:39 Randall Stewart wrote: ... > Another thing... kinda weird.. when I have this thing working with > SCTP and I > let the SCTP stack try to initialize the socket right away.. I get bogus > results. The port is actually binding.. but yet it cant be sent to. If I > unbind i.e. close the socket that got created.. then do a sysctl to re- > add > the same port.. all works fine. > > For now I am going to make SCTP NOT do this.. and have to add it to the > sysctl's in /etc/sysctl.conf to add UDP tunneling. > > Only other solution would be a timer in the transport after startup to > do this binding... You can probably do a SYSINIT in SI_SUB_PROTO_DOMAIN around the middle and you should be golden. If it turns out that this is not late enough you can check sys/kernel.h for later SI_SUBs that might be fitting. > I was wondering if I would see a race in the protocol stack > initialization.. basically > my guess is SCTP initializes ahead of UDP.. so its actually a wonder I > did not crash ;-D -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News