chiark / gitweb /
sd-dhcp-client: eagerly drop too small packets
authorTom Gundersen <teg@jklm.no>
Sun, 6 Apr 2014 17:35:36 +0000 (19:35 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 6 Apr 2014 17:42:11 +0000 (19:42 +0200)
commit0c79c68d93d721d37ba088fb50dbf07bb0d447e5
tree597fbd5e1524af6e0479ceea2813e20148aea653
parent3b7ca119fdc501e21f017695dc9b6f82fdbd1d93
sd-dhcp-client: eagerly drop too small packets

If they are too small to fit the IP+UDP+DHCP headers they can be of no use, so
don't waste resources parsing them. This is at the cost of losing some verbosity
in the logging.
src/libsystemd-network/dhcp-network.c
src/libsystemd-network/dhcp-packet.c
src/libsystemd-network/sd-dhcp-client.c