DHCP message parser.
More...
DHCP message parser.
- Date
- 2022-09-12
- Copyright
- Copyright (c) 2022
◆ dhcp_free_message()
Free the memory allocated for a DHCP message.
- Parameters
-
message | the DHCP message to free |
◆ dhcp_parse_header()
Parse the header of a DHCP message (not including options).
Parse the header of a DHCP message (not including options)
- Parameters
-
data | a pointer to the start of the DHCP message |
- Returns
- the parsed DHCP message with the header fields filled in
◆ dhcp_parse_message()
Parse a DHCP message.
- Parameters
-
data | a pointer to the start of the DHCP message |
- Returns
- the parsed DHCP message
◆ dhcp_parse_option()
dhcp_option_t dhcp_parse_option |
( |
uint8_t * |
data, |
|
|
uint16_t * |
offset |
|
) |
| |
Parse a DHCP option.
- Parameters
-
data | a pointer to the start of the DHCP option |
offset | a pointer to the current offset inside the DHCP message Its value will be updated to point to the next option |
- Returns
- the parsed DHCP option
◆ dhcp_parse_options()
Parse DHCP options.
- Parameters
-
data | a pointer to the start of the DHCP options list |
- Returns
- a pointer to the start of the parsed DHCP options
◆ dhcp_print_header()
Print the header of a DHCP message.
- Parameters
-
message | the DHCP message to print the header of |
◆ dhcp_print_message()
Print a DHCP message.
- Parameters
-
message | the DHCP message to print |
◆ dhcp_print_option()
Print a DHCP option.
- Parameters
-
option | the DHCP option to print |