[klibc] ipconfig: Append padding if DHCP packet length < 300 octets

This patch appends padding to DHCP packet for its length to be 300 octets,
if its length is shorter than 300 octets.

dhclient in ISC DHCP 4.1.1-P1 also does so. Some bad DHCP servers ignore
short DHCP packet which dhclient doesn't send.

Signed-off-by: KUMAAN <9maaan@gmail.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: maximilian attems <max@stro.at>
2 files changed