diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-27 03:45:20 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-27 03:45:20 +0400 |
commit | 739e30fbc3363756e574b5761ff63ea97ffd61c1 (patch) | |
tree | e2a42d90dcc984d6ad6dc1736d75095991a1ab09 /networking/udhcp/options.h | |
parent | 7d9399e8dcfb9853f435c2936f449377d92f6e47 (diff) |
udhcp: add inline docs; small code shrink
function old new delta
send_packet 103 87 -16
udhcpc_main 2359 2323 -36
Diffstat (limited to 'networking/udhcp/options.h')
-rw-r--r-- | networking/udhcp/options.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/networking/udhcp/options.h b/networking/udhcp/options.h index 70b8704d2..fcf1c9a6d 100644 --- a/networking/udhcp/options.h +++ b/networking/udhcp/options.h @@ -78,16 +78,14 @@ enum { #define ETH_10MB 1 #define ETH_10MB_LEN 6 -#define DHCPDISCOVER 1 -#define DHCPOFFER 2 -#define DHCPREQUEST 3 -#define DHCPDECLINE 4 -#define DHCPACK 5 -#define DHCPNAK 6 -#define DHCPRELEASE 7 -#define DHCPINFORM 8 - -#define BROADCAST_FLAG 0x8000 +#define DHCPDISCOVER 1 /* client -> server */ +#define DHCPOFFER 2 /* client <- server */ +#define DHCPREQUEST 3 /* client -> server */ +#define DHCPDECLINE 4 /* client -> server */ +#define DHCPACK 5 /* client <- server */ +#define DHCPNAK 6 /* client <- server */ +#define DHCPRELEASE 7 /* client -> server */ +#define DHCPINFORM 8 /* client -> server */ #define OPTION_FIELD 0 #define FILE_FIELD 1 |