aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-04 16:05:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-04 16:05:48 +0200
commit2cd81698ee6f272202299058c134495bc8984c5f (patch)
tree688e15815e3c1e4322b4a64a4446f697262b6991 /networking
parent6d26744a2c78d874e6e2c8f44cacb0c7c6c11eae (diff)
downloadbusybox-2cd81698ee6f272202299058c134495bc8984c5f.tar.gz
udhcp: add decimal option values in comments, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/common.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 550161934..7ad603d33 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -122,9 +122,9 @@ enum {
//#define DHCP_LOG_SERVER 0x07 /* port 704 UDP log (not syslog)
//#define DHCP_COOKIE_SERVER 0x08 /* "quote of the day" server */
//#define DHCP_LPR_SERVER 0x09
-#define DHCP_HOST_NAME 0x0c /* either client informs server or server gives name to client */
+#define DHCP_HOST_NAME 0x0c /* 12: either client informs server or server gives name to client */
//#define DHCP_BOOT_SIZE 0x0d
-//#define DHCP_DOMAIN_NAME 0x0f /* server gives domain suffix */
+//#define DHCP_DOMAIN_NAME 0x0f /* 15: server gives domain suffix */
//#define DHCP_SWAP_SERVER 0x10
//#define DHCP_ROOT_PATH 0x11
//#define DHCP_IP_TTL 0x17
@@ -135,40 +135,40 @@ enum {
//#define DHCP_NIS_SERVER 0x29
//#define DHCP_NTP_SERVER 0x2a
//#define DHCP_WINS_SERVER 0x2c
-#define DHCP_REQUESTED_IP 0x32 /* sent by client if specific IP is wanted */
-#define DHCP_LEASE_TIME 0x33
-#define DHCP_OPTION_OVERLOAD 0x34
-#define DHCP_MESSAGE_TYPE 0x35
-#define DHCP_SERVER_ID 0x36 /* by default server's IP */
-#define DHCP_PARAM_REQ 0x37 /* list of options client wants */
-//#define DHCP_ERR_MESSAGE 0x38 /* error message when sending NAK etc */
-#define DHCP_MAX_SIZE 0x39
-#define DHCP_VENDOR 0x3c /* client's vendor (a string) */
-#define DHCP_CLIENT_ID 0x3d /* by default client's MAC addr, but may be arbitrarily long */
-//#define DHCP_TFTP_SERVER_NAME 0x42 /* same as 'sname' field */
-//#define DHCP_BOOT_FILE 0x43 /* same as 'file' field */
-//#define DHCP_USER_CLASS 0x4d /* RFC 3004. set of LASCII strings. "I am a printer" etc */
-#define DHCP_FQDN 0x51 /* client asks to update DNS to map its FQDN to its new IP */
-//#define DHCP_DOMAIN_SEARCH 0x77 /* RFC 3397. set of ASCIZ string, DNS-style compressed */
-//#define DHCP_SIP_SERVERS 0x78 /* RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */
-//#define DHCP_STATIC_ROUTES 0x79 /* RFC 3442. (mask,ip,router) tuples */
-//#define DHCP_VLAN_ID 0x84 /* 802.1P VLAN ID */
-//#define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */
-//#define DHCP_PXE_CONF_FILE 0xd1 /* RFC 5071 Configuration File */
-//#define DHCP_PXE_PATH_PREFIX 0xd2 /* RFC 5071 Configuration File */
-//#define DHCP_REBOOT_TIME 0xd3 /* RFC 5071 Reboot time */
-//#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */
-//#define DHCP_WPAD 0xfc /* MSIE's Web Proxy Autodiscovery Protocol */
-#define DHCP_END 0xff
+#define DHCP_REQUESTED_IP 0x32 /* 50: sent by client if specific IP is wanted */
+#define DHCP_LEASE_TIME 0x33 /* 51: */
+#define DHCP_OPTION_OVERLOAD 0x34 /* 52: */
+#define DHCP_MESSAGE_TYPE 0x35 /* 53: */
+#define DHCP_SERVER_ID 0x36 /* 54: server's IP */
+#define DHCP_PARAM_REQ 0x37 /* 55: list of options client wants */
+//#define DHCP_ERR_MESSAGE 0x38 /* 56: error message when sending NAK etc */
+#define DHCP_MAX_SIZE 0x39 /* 57: */
+#define DHCP_VENDOR 0x3c /* 60: client's vendor (a string) */
+#define DHCP_CLIENT_ID 0x3d /* 61: by default client's MAC addr, but may be arbitrarily long */
+//#define DHCP_TFTP_SERVER_NAME 0x42 /* 66: same as 'sname' field */
+//#define DHCP_BOOT_FILE 0x43 /* 67: same as 'file' field */
+//#define DHCP_USER_CLASS 0x4d /* 77: RFC 3004. set of LASCII strings. "I am a printer" etc */
+#define DHCP_FQDN 0x51 /* 81: client asks to update DNS to map its FQDN to its new IP */
+//#define DHCP_DOMAIN_SEARCH 0x77 /* 119: RFC 3397. set of ASCIZ string, DNS-style compressed */
+//#define DHCP_SIP_SERVERS 0x78 /* 120: RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */
+//#define DHCP_STATIC_ROUTES 0x79 /* 121: RFC 3442. (mask,ip,router) tuples */
+//#define DHCP_VLAN_ID 0x84 /* 132: 802.1P VLAN ID */
+//#define DHCP_VLAN_PRIORITY 0x85 /* 133: 802.1Q VLAN priority */
+//#define DHCP_PXE_CONF_FILE 0xd1 /* 209: RFC 5071 Configuration File */
+//#define DHCP_PXE_PATH_PREFIX 0xd2 /* 210: RFC 5071 Configuration File */
+//#define DHCP_REBOOT_TIME 0xd3 /* 211: RFC 5071 Reboot time */
+//#define DHCP_MS_STATIC_ROUTES 0xf9 /* 249: Microsoft's pre-RFC 3442 code for 0x79? */
+//#define DHCP_WPAD 0xfc /* 252: MSIE's Web Proxy Autodiscovery Protocol */
+#define DHCP_END 0xff /* 255: */
/* Offsets in option byte sequence */
#define OPT_CODE 0
#define OPT_LEN 1
#define OPT_DATA 2
/* Offsets in option byte sequence for DHCPv6 */
-#define D6_OPT_CODE 0
-#define D6_OPT_LEN 2
-#define D6_OPT_DATA 4
+#define D6_OPT_CODE 0
+#define D6_OPT_LEN 2
+#define D6_OPT_DATA 4
/* Bits in "overload" option */
#define OPTION_FIELD 0
#define FILE_FIELD 1