Go to the source code of this file.
Data Structures | |
| struct | dhcp82 |
| This structure contains the option 82 values. More... | |
| struct | dhcp_packet |
| Structure of a DHCP packet. More... | |
| struct | m_dhcp82 |
| For alignement problem, we must use a "per byte" structure. 'unsigned long int' and 'unsigned short int' can not be anywhere in memory. More... | |
| struct | op_control |
| This structure is associated with all packets. It contains information about the packets. More... | |
| struct | opt |
| This structure is associated with all packets. It is used to store a packet option. More... | |
Defines | |
| #define | DSLAM_UNKNOWN -1 |
| The constants is used to represent a unknown DSLAM's vendor. | |
| #define | DSLAM_UTSTARCOM 0 |
| The constants represents an UT STARCOM DSLAM. | |
| #define | DSLAM_ALCATEL 1 |
| The constants represents an ALCATEL DSLAM. | |
| #define | NODE_BUFFER_SIZE 21 |
| Number of bytes used to store the Node ID (including the final nul character). More... | |
| #define | VALUE_MAX_SIZE 2048 |
| Maximum number of bytes for a DHCP option value. | |
| #define | OPTION_SIZE 2048 |
| Maximum size for the option's part. This size includes the magic number (4 bytes). | |
| #define | PACKET_SIZE (236 + OPTION_SIZE) |
Maximum size (in bytes) of a packets. A packet contains:
| |
| #define | DHCPDISCOVER 1 |
| Value for the option 53 (DHCP Message Type): Identifies the DHCP DISCOVER. | |
| #define | DHCPOFFER 2 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP OFFER. | |
| #define | DHCPREQUEST 3 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP REQUEST. | |
| #define | DHCPDECLINE 4 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP DECLINE. | |
| #define | DHCPACK 5 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP ACK. | |
| #define | DHCPNAK 6 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP NACK. | |
| #define | DHCPRELEASE 7 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP RELEASE. | |
| #define | DHCPINFORM 8 |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP INFORM. | |
| #define | DHCPDISCOVER_BYTE "\x01" |
| Value for the option 53 (DHCP Message Type): Identifies the DHCP DISCOVER in string notation. | |
| #define | DHCPDISCOVER_HEXA "01" |
| Value for the option 53 (DHCP Message Type): Identifies the DHCP DISCOVER in hexa. | |
| #define | DHCPOFFER_BYTE "\x02" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP OFFER in string notation. | |
| #define | DHCPOFFER_HEXA "02" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP OFFER in hexa. | |
| #define | DHCPREQUEST_BYTE "\x03" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP REQUEST in string notation. | |
| #define | DHCPREQUEST_HEXA "03" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP REQUEST in hexa. | |
| #define | DHCPDECLINE_BYTE "\x04" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP DECLINE in string notation. | |
| #define | DHCPDECLINE_HEXA "04" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP DECLINE in hexa. | |
| #define | DHCPACK_BYTE "\x05" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP ACK in string notation. | |
| #define | DHCPACK_HEXA "05" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP ACK in hexa. | |
| #define | DHCPNAK_BYTE "\x06" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP NACK in string notation. | |
| #define | DHCPNAK_HEXA "06" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP NACK in hexa. | |
| #define | DHCPRELEASE_BYTE "\x07" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP RELEASE in string notation. | |
| #define | DHCPRELEASE_HEXA "07" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP RELEASE in hexa. | |
| #define | DHCPINFORM_BYTE "\x08" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP INFORM in string notation. | |
| #define | DHCPINFORM_HEXA "08" |
| Value for the option 53 (DHCP Message Type): dentifies the DHCP INFORM in hexa. | |
| #define | BOOTREQUEST 1 |
| Value for field 'op' of a DHCP packet. If 'op' is set to 'BOOTREQUEST', it means that the packet comes from the client (to the server). | |
| #define | BOOTREPLY 2 |
| Value for field 'op' of a DHCP packet. If 'op' is set to 'BOOTREPLY', it means that the packet comes from the server (to the client). | |
Definition in file packets_data.h.
|
|
Number of bytes used to store the Node ID (including the final nul character).
Definition at line 34 of file packets_data.h. Referenced by main(), and packets_parse_options(). |
1.2.15