[klibc] rootpath length in ipconfig.
H. Peter Anvin
hpa at zytor.com
Thu May 28 07:54:40 PDT 2009
Stanislaw Sawa wrote:
> Ipconfig when recieves rootpath option from dhcp it truncates it to quite short string (39 characters). It is slightly to short if you start passing rootpath both nfs server ip address and some nfs options through dhcp.
> The length of this option is defined in usr/kinit/ipconfig/netdev.h
> #define BPLEN 40
> Could you bump it up to something higher? 256 might be enough
> (rfc 2132 doesn't specify max length of this option)
Should be safe... in theory options can exceed 255 but a lof of software
doesn't handle it.
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
More information about the klibc