[PATCH] [klibc] ipconfig: raise field length for rootpath DHCP option
maximilian attems
max at stro.at
Fri Sep 5 13:38:22 PDT 2008
ipconfig would cut off after 40 bytes, use 256 bytes.
This is indeed way too short for dotted-decimal IP adresses
up to 15 byes long and several NFS mount options.
fixes http://bugs.debian.org/497800
Reported-by: "Christopher Huhn, GSI" <C.Huhn at gsi.de>
Signed-off-by: maximilian attems <max at stro.at>
---
usr/kinit/ipconfig/netdev.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/kinit/ipconfig/netdev.h b/usr/kinit/ipconfig/netdev.h
index fb6640a..1091943 100644
--- a/usr/kinit/ipconfig/netdev.h
+++ b/usr/kinit/ipconfig/netdev.h
@@ -4,7 +4,7 @@
#include <sys/utsname.h>
#include <net/if.h>
-#define BPLEN 40
+#define BPLEN 256
#define FNLEN 128 /* from DHCP RFC 2131 */
struct netdev {
--
1.6.3.1
More information about the klibc
mailing list