chiark / gitweb /
sd-dhcp: use FIONREAD to get correct size of incoming DHCP packet
authorTom Gundersen <teg@jklm.no>
Sun, 23 Feb 2014 16:30:13 +0000 (17:30 +0100)
committerTom Gundersen <teg@jklm.no>
Sun, 23 Feb 2014 16:52:31 +0000 (17:52 +0100)
commit5266a81ea2b5d355916695c1ecc8c4570a54727b
treebb56e464d908c6d9d1a12824b66fa248260fd3ba
parent3bb621e1e66b704c0c2dcef31c66f7c646dd47f6
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.
src/libsystemd-dhcp/dhcp-packet.c
src/libsystemd-dhcp/sd-dhcp-client.c