Subject: Re: Flag to exclude an interface from INADDR_ANY?
To: Darren Reed <firstname.lastname@example.org>
From: Michael Richardson <email@example.com>
Date: 01/03/2002 11:36:58
>>>>> "Darren" == Darren Reed <firstname.lastname@example.org> writes:
Darren> Also, it would be nice if you could ask the kernel what address an
Darren> incoming UDP packet had "connected" with.
You have to set a socket option and then use recvmsg(2). You get an
additional sockaddr in the control structure. I can never remember the name
of the option, or I'd point you right at it. I wish they were all documented
on udp(4) or something. I can never find socket stuff with man :-(
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] email@example.com http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [