chiark / gitweb /
sd-dhcp: don't reject packets with the 'wrong' source port
authorTom Gundersen <teg@jklm.no>
Sun, 23 Feb 2014 18:21:50 +0000 (19:21 +0100)
committerTom Gundersen <teg@jklm.no>
Sun, 23 Feb 2014 21:59:43 +0000 (22:59 +0100)
commit8fa2eeace7beecedb01c82811e28949cacec1236
tree88349a086ecc7ebb425de5514d64d6f901f0e3df
parent5266a81ea2b5d355916695c1ecc8c4570a54727b
sd-dhcp: don't reject packets with the 'wrong' source port

The RFC does not specify that the packets from the DHCP server must come from
the DHCP server port, only that that's where they should be sent.

This fixes a problem when running networkd in VirtualBox.

Thanks to Sébastien Luttringer for reporting the bug and very patiently testing
various fixes.
src/libsystemd-dhcp/dhcp-packet.c