Changeset 17771 in vbox
- Timestamp:
- Mar 12, 2009 6:13:24 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44304
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/net.h
r14695 r17771 255 255 typedef struct RTNETBOOTP 256 256 { 257 /** 00 - The packet opcode . */257 /** 00 - The packet opcode (RTNETBOOTP_OP_*). */ 258 258 uint8_t bp_op; 259 259 /** 01 - Hardware address type. Same as RTNETARPHDR::ar_htype. */ … … 267 267 /** 08 - Seconds since boot started. */ 268 268 uint16_t bp_secs; 269 /** 0a - Unused (BOOTP) / Flags (DHCP) .*/269 /** 0a - Unused (BOOTP) / Flags (DHCP) (RTNET_DHCP_FLAGS_*). */ 270 270 uint16_t bp_flags; 271 271 /** 0c - Client IPv4 address. */ … … 314 314 #define RTNETBOOTP_DHCP_MIN_LEN 0xf1 315 315 316 /** The normal size of the a DHCP packet (i.e. a RTNETBOOTP). 317 * Same as RTNET_DHCP_OPT_SIZE, just expressed differently. */ 318 #define RTNET_DHCP_NORMAL_SIZE (0xec + 4 + RTNET_DHCP_OPT_SIZE) 319 /** The normal size of RTNETBOOTP::bp_vend::Dhcp::dhcp_opts. */ 320 #define RTNET_DHCP_OPT_SIZE (312 - 4) 321 316 322 /** @name BOOTP packet opcode values 317 323 * @{ */ … … 348 354 * @{ */ 349 355 /** 1 byte padding, this has no dhcp_len field. */ 350 #define RTNET_DHCP_OPT_PAD 0 356 #define RTNET_DHCP_OPT_PAD 0 357 358 /** The subnet mask. */ 359 #define RTNET_DHCP_OPT_SUBNET_MASK 1 360 /** The time offset. */ 361 #define RTNET_DHCP_OPT_TIME_OFFSET 2 362 /** The routers for the subnet. */ 363 #define RTNET_DHCP_OPT_ROUTERS 3 364 /** Domain Name Server. */ 365 #define RTNET_DHCP_OPT_DNS 6 366 /** Host name. */ 367 #define RTNET_DHCP_OPT_HOST_NAME 12 368 /** Domain name. */ 369 #define RTNET_DHCP_OPT_DOMAIN_NAME 15 370 371 /** The requested address. */ 372 #define RTNET_DHCP_OPT_REQ_ADDR 50 373 /** The lease time in seconds. */ 374 #define RTNET_DHCP_OPT_LEASE_TIME 51 375 /** Option overload. 376 * Indicates that the bp_file and/or bp_sname holds contains DHCP options. */ 377 #define RTNET_DHCP_OPT_OPTION_OVERLOAD 52 351 378 /** Have a 8-bit message type value as data, see RTNET_DHCP_MT_*. */ 352 #define RTNET_DHCP_OPT_MSG_TYPE 53 379 #define RTNET_DHCP_OPT_MSG_TYPE 53 380 /** Server ID. */ 381 #define RTNET_DHCP_OPT_SERVER_ID 54 382 /** Parameter request list. */ 383 #define RTNET_DHCP_OPT_PARAM_REQ_LIST 55 384 /** The maximum DHCP message size a client is willing to accept. */ 385 #define RTNET_DHCP_OPT_MAX_DHCP_MSG_SIZE 57 386 /** Client ID. */ 387 #define RTNET_DHCP_OPT_CLIENT_ID 61 388 /** TFTP server name. */ 389 #define RTNET_DHCP_OPT_TFTP_SERVER_NAME 66 390 /** Bootfile name. */ 391 #define RTNET_DHCP_OPT_BOOTFILE_NAME 67 392 353 393 /** Marks the end of the DHCP options, this has no dhcp_len field. */ 354 #define RTNET_DHCP_OPT_END 255394 #define RTNET_DHCP_OPT_END 255 355 395 /** @} */ 356 396
Note:
See TracChangeset
for help on using the changeset viewer.