From owner-freebsd-questions Tue Oct 6 17:04:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA04641 for freebsd-questions-outgoing; Tue, 6 Oct 1998 17:04:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA04567 for ; Tue, 6 Oct 1998 17:03:53 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id QAA24967; Tue, 6 Oct 1998 16:57:04 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdt24960; Tue Oct 6 23:56:55 1998 Date: Tue, 6 Oct 1998 16:56:47 -0700 (PDT) From: Julian Elischer To: "Eric J. Schwertfeger" cc: Doug White , questions@FreeBSD.ORG Subject: Re: Trying to learn divert sockets In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Are you working on 2.2.7 or 2.2. 6 or -current? 2.2.7 and -current have slightly differnt behavior to earlier versions can you recap what you are trying to do? I missed the original posting. julian On Tue, 6 Oct 1998, Eric J. Schwertfeger wrote: > On Tue, 6 Oct 1998, Doug White wrote: > > > > My luck so far doing this has been zero. I've got a subroutine that sets > > > up sockaddr_in for use, and works well enough that I can bind the local > > > end of a socket to a specific IP address and port, but when I use the same > > > routine in my divert code, using the same port number that I'm diverting, > > > and the IP address of the interface that I want to divert to, I get > > > EADDRNOTAVAIL. > > > > Have you looked at the natd code? natd is the classic divert client. > > Yes I did. natd only reinjects to the same interface that the packet was > diverted from, and that much I can do with no problem, it's only when I > try to reinject to a different interface that I have problems. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message