Date: Tue, 6 Oct 1998 13:45:26 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: "Eric J. Schwertfeger" <ejs@bfd.com> Cc: questions@FreeBSD.ORG Subject: Re: Trying to learn divert sockets Message-ID: <Pine.BSF.4.03.9810061345060.19930-100000@resnet.uoregon.edu> In-Reply-To: <Pine.BSF.4.05.9810031615170.10070-100000@harlie.bfd.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Oct 1998, Eric J. Schwertfeger wrote: > > I'm trying to write a simple program that uses divert sockets, and it > isn't going too well. > > Basically, I can make my program reinject the packets back into the same > device as they were diverted from, and that works. However, I'm trying to > divert the packets to a different device for various reasons. > > 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. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9810061345060.19930-100000>