[klibc] [PATCH 5/6] ipconfig: Append padding if DHCP packet length is shorter than 300 octets

maximilian attems max at stro.at
Tue May 22 01:56:02 PDT 2012


On Tue, 23 Aug 2011, KUMAAN wrote:

> 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 at gmail.com>
> ---
>  usr/kinit/ipconfig/bootp_packet.h |    3 +++
>  usr/kinit/ipconfig/dhcp_proto.c   |   19 ++++++++++++++++++-
>  2 files changed, 21 insertions(+), 1 deletions(-)
> 

thanks applied!


More information about the klibc mailing list