Date: Wed, 12 Nov 1997 18:39:49 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: fwang2@eos.ncsu.edu (Feiyi Wang) Cc: questions@FreeBSD.ORG, brian@awfulhak.org, archie@whistle.com Subject: Re: Divert Socket Problem Message-ID: <199711130239.SAA13189@bubba.whistle.com> In-Reply-To: <346A66B3.20E7@eos.ncsu.edu> from Feiyi Wang at "Nov 12, 97 09:32:19 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Feiyi Wang writes: > Hi, thanks very the input, but the problem looks hopeless :( > > - I am using the newest FreeBSD 2.2.5 > > - Both DIVERT and FIREWALL have been enable in kernel, or else it won't > allow me to create a divert socket. > > - Return values of all system calls are checked, actually, the divert > socket fd is 3, (stdin, stdout, stderr, not it's 3, right?) > > - The firewall rule (sbin/ipfw divert 50000 89 from any to any) seems > correct. I double check the ipfw synopsis. Hmm, that's what I was afraid of :-) Don't have your original email, but are you setting the addr.sin_port = 50000 instead of htons(50000) ? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711130239.SAA13189>