[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: UDP "to" address?
From: Terry Lambert <terry () lambert ! org>
Date: 1997-08-27 17:16:12
[Download RAW message or body]
> Typically, a portable approach to doing this is to create a socket
> per interface address and bind it. Then you look at which fd the
> packet was received on to determine the destination address.
>
> Look at named and xntpd to get a sense of this. In fact, you can
> probably steal a lot of this code and apply it directly.
>
> There also seems to be a socket option you can set which returns the
> destination address in the "control information" field specified
> with recvmsg(2). I noticed the code for this in ip_input.c.
This is an issue for the NFS UDP code, actually. If you get a general
answer, it'd be helpful. I thin recvmsg() is probably the way to go.
Terry Lambert
terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic