From owner-freebsd-questions Wed Nov 12 18:40:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA05058 for questions-outgoing; Wed, 12 Nov 1997 18:40:38 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA05044 for ; Wed, 12 Nov 1997 18:40:35 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id SAA08756; Wed, 12 Nov 1997 18:39:58 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma008752; Wed Nov 12 18:39:49 1997 Received: (from archie@localhost) by bubba.whistle.com (8.8.5/8.6.12) id SAA13189; Wed, 12 Nov 1997 18:39:49 -0800 (PST) From: Archie Cobbs Message-Id: <199711130239.SAA13189@bubba.whistle.com> Subject: Re: Divert Socket Problem In-Reply-To: <346A66B3.20E7@eos.ncsu.edu> from Feiyi Wang at "Nov 12, 97 09:32:19 pm" To: fwang2@eos.ncsu.edu (Feiyi Wang) Date: Wed, 12 Nov 1997 18:39:49 -0800 (PST) Cc: questions@FreeBSD.ORG, brian@awfulhak.org, archie@whistle.com X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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