Subject: Re: Flag to exclude an interface from INADDR_ANY?
To: Darren Reed <>
From: Michael Richardson <>
List: tech-net
Date: 01/03/2002 11:36:58
>>>>> "Darren" == Darren Reed <> writes:
    Darren> Also, it would be nice if you could ask the kernel what address an
    Darren> incoming UDP packet had "connected" with.

  You can.

  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[
] |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [