From owner-freebsd-questions Tue Oct 6 13:53:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16009 for freebsd-questions-outgoing; Tue, 6 Oct 1998 13:53:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horst.bfd.com (horst.bfd.com [12.9.219.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15872 for ; Tue, 6 Oct 1998 13:52:45 -0700 (PDT) (envelope-from ejs@bfd.com) Received: from HARLIE.bfd.com (bastion.bfd.com [12.9.219.14]) by horst.bfd.com (8.9.1/8.9.1) with ESMTP id NAA19938; Tue, 6 Oct 1998 13:52:37 -0700 (PDT) (envelope-from ejs@bfd.com) Date: Tue, 6 Oct 1998 13:52:37 -0700 (PDT) From: "Eric J. Schwertfeger" To: Doug White cc: 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 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