1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-15 07:24:00 +03:00
Commit Graph

6 Commits

Author SHA1 Message Date
Tom Gundersen
0a1b6da821 sd-dhcp: message_init - only set secs in the client 2014-02-23 23:00:18 +01:00
Tom Gundersen
8fa2eeace7 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.
2014-02-23 22:59:43 +01:00
Tom Gundersen
5266a81ea2 sd-dhcp: use FIONREAD to get correct size of incoming DHCP packet
This avoids the problem of broken DHCP servers sending us too big packets that don't fit in our buffer.
2014-02-23 17:52:31 +01:00
Tom Gundersen
06b44be71d sd-dhcp: equally verify udp and raw dhcp messages
Also be more explicit about why packages are ignored.
2014-02-23 16:16:09 +01:00
Tom Gundersen
ac4f16ab4d sd-dhcp: be more detailed about invalid headers
This may be a common problem, so let's make it simpler to debug,
at least for now.
2014-02-23 01:38:49 +01:00
Tom Gundersen
cf597f650a sd-dhcp: split out packet handling from client 2014-02-11 16:24:23 +01:00