Subject: Re: dhcpd(8) _cannot_ be completely disabled on an interface
To: None <,>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-net
Date: 01/07/2002 15:30:05
> I think [dhcp uses bpf] because it needs to know which interface the
> packet arrived on, and there traditionally hasn't been a way to find
> this out about UDP packets.  [...]
> If NetBSD already has a way to identify the incoming interface for an
> IP datagram it could probably be put to use.

It looks as though setting IP_RECVIF with setsockopt (level IPPROTO_IP,
if I've read the code right) should do this - search for IP_RECVIF and
INP_RECVIF in /sys/netinet for full details.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B