Subject: Re: Flag to exclude an interface from INADDR_ANY?
To: Darren Reed <email@example.com>
From: Michael Richardson <firstname.lastname@example.org>
Date: 01/03/2002 11:36:58
>>>>> "Darren" == Darren Reed <email@example.com> 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[
] firstname.lastname@example.org http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [