dhcpv4: add BPF to dhcpv4_setup_interface()
authorDavid Härdeman <david@hardeman.nu>
Fri, 17 Oct 2025 12:49:25 +0000 (14:49 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 23 Nov 2025 19:05:03 +0000 (20:05 +0100)
commitb0739f23c310df06d227e5affeb49d85fbfe8161
tree82190c3874e7fe1b8f1227995141642aceac6ffd
parent5b7cfef774fb592164664c5f81bc620c61a9d214
dhcpv4: add BPF to dhcpv4_setup_interface()

This means the kernel won't even pass packets which we are not
interested in.

Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/odhcpd/pull/318
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/dhcpv4.c
src/dhcpv4.h