diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-31 09:54:18 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-02 14:49:51 +0200 |
commit | bc29e507e2731d594ab577d04c13d771b39fa0c1 (patch) | |
tree | 3027b2756225b6c0f1b4964599bbdf2c9f89fc17 /.dir-locals.el | |
parent | b6b20d1d360cff3c485fbc2e20c03498eafe188d (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 '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions