Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 13:52:37 -0700 (PDT)
From:      "Eric J. Schwertfeger" <ejs@bfd.com>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Trying to learn divert sockets
Message-ID:  <Pine.BSF.4.05.9810061351010.17509-100000@harlie.bfd.com>
In-Reply-To: <Pine.BSF.4.03.9810061345060.19930-100000@resnet.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9810061351010.17509-100000>