]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- buffer used for interface information retrieval increased from 2kB to 64kB
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 16 Jun 2003 14:37:41 +0000 (14:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  Default buffer length is not enough for systems with >50 interfaces

Changed files:
    dhcp-if_buffer_size.patch -> 1.1

dhcp-if_buffer_size.patch [new file with mode: 0644]

diff --git a/dhcp-if_buffer_size.patch b/dhcp-if_buffer_size.patch
new file mode 100644 (file)
index 0000000..b42fb8a
--- /dev/null
@@ -0,0 +1,12 @@
+diff -durN dhcp-3.0.1rc11.orig/common/discover.c dhcp-3.0.1rc11/common/discover.c
+--- dhcp-3.0.1rc11.orig/common/discover.c      Sun Nov 17 03:26:57 2002
++++ dhcp-3.0.1rc11/common/discover.c   Mon Jun 16 16:32:11 2003
+@@ -135,7 +135,7 @@
+ {
+       struct interface_info *tmp, *ip;
+       struct interface_info *last, *next;
+-      char buf [2048];
++      char buf [65536];
+       struct ifconf ic;
+       struct ifreq ifr;
+       int i;
This page took 0.075025 seconds and 4 git commands to generate.