summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-31 09:54:18 +0200
committerTom Gundersen <teg@jklm.no>2014-04-02 14:49:51 +0200
commitbc29e507e2731d594ab577d04c13d771b39fa0c1 (patch)
tree3027b2756225b6c0f1b4964599bbdf2c9f89fc17 /src/udev
parentb6b20d1d360cff3c485fbc2e20c03498eafe188d (diff)
sd-dhcp-client: use BPF on raw socket
Filter out everything except UDP packets destined for the DHCP client port, this should avoid the vast majority of spurious wakeups. Filter based on [0], with permission. Possible improvemnts: also check for the DHCP magic cookie to drop invalid packets. Check for our xid to filter out packets destined for other clients. [0]: <https://github.com/ambrop72/badvpn/blob/master/dhcpclient/BDHCPClient.c#L57>
Diffstat (limited to 'src/udev')
0 files changed, 0 insertions, 0 deletions