Re: npf and dhcp

Greg Troxel <[email protected]> Mon, 25 May 2026 19:05:07 -0400
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
BERTRAND Joël <[email protected]> writes:

> Greg Troxel a écrit :
>> BERTRAND Joël <[email protected]> writes:
>> 
>>> 	As boots and bootc ports are closed, how can this server answer to DHCP
>>> request ?
>> 
>> bpf?
>
> 	I beg your pardon, but I don't understand your answer.

How is the DHCP server receiving and sending packets?  Sometimes that
kind of server uses raw sockets and sometimes it uses bpf.  It is not
clear to me how npf interacts with bpf hooks, but I would expect packets
blocked from ip_input to still reach bpf_mtap.