]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: Give a better message when packet validation failes
authorRoy Marples <roy@marples.name>
Fri, 13 Sep 2019 09:43:51 +0000 (10:43 +0100)
committerRoy Marples <roy@marples.name>
Fri, 13 Sep 2019 09:47:14 +0000 (10:47 +0100)
commit49d5623c091852e1aa4ed68404035ff6dcca4587
tree58bff5a2ecf0cea9bbedc87e4112581ccc75bcda
parentc3f330b479b5669dc829133a8e5eafc8bda46632
DHCP: Give a better message when packet validation failes

We return ERANGE for underflow and ENOBUFS for overflow,
but these error strings could be misleading.
For EINVAL report invalid checksum, otherwise invalid UDP packet.
src/dhcp.c