aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-21 00:43:11 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-21 00:43:11 +0100
commite5ce91b41b657a0dbd1db442ebc47f4c935e7d1f (patch)
treeca7537fff5a9026bdfe5c5c5104b65d6c2a5ebd0 /networking/udhcp/common.h
parent87fa216e1e388c537cda2cff126eea816a4135ac (diff)
downloadbusybox-w32-e5ce91b41b657a0dbd1db442ebc47f4c935e7d1f.tar.gz
busybox-w32-e5ce91b41b657a0dbd1db442ebc47f4c935e7d1f.tar.bz2
busybox-w32-e5ce91b41b657a0dbd1db442ebc47f4c935e7d1f.zip
udhcp: code shrink; disable time and log server options
function old new delta add_server_options - 100 +100 udhcp_add_simple_option 92 90 -2 nobody_responds_to_arp 88 85 -3 dhcp_options 66 62 -4 udhcp_add_option_string 104 94 -10 udhcp_run_script 665 654 -11 dhcp_option_strings 203 188 -15 static.blank_chaddr 16 - -16 send_ACK 211 180 -31 add_bootp_options 61 - -61 udhcpd_main 1925 1846 -79 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/8 up/down: 100/-232) Total: -132 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r--networking/udhcp/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index e88cfb1c7..d7c874e5b 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -44,6 +44,10 @@ struct dhcp_packet {
44 uint32_t cookie; /* fixed first four option bytes (99,130,83,99 dec) */ 44 uint32_t cookie; /* fixed first four option bytes (99,130,83,99 dec) */
45 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS]; 45 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS];
46} PACKED; 46} PACKED;
47#define DHCP_PKT_SNAME_LEN 64
48#define DHCP_PKT_FILE_LEN 128
49#define DHCP_PKT_SNAME_LEN_STR "64"
50#define DHCP_PKT_FILE_LEN_STR "128"
47 51
48struct ip_udp_dhcp_packet { 52struct ip_udp_dhcp_packet {
49 struct iphdr ip; 53 struct iphdr ip;