OpenVPN
|
Go to the source code of this file.
Data Structures | |
struct | dhcp |
struct | dhcp_full |
Macros | |
#define | DHCP_PAD 0 |
#define | DHCP_ROUTER 3 |
#define | DHCP_MSG_TYPE 53 /* message type (u8) */ |
#define | DHCP_END 255 |
#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 | BOOTPS_PORT 67 |
#define | BOOTPC_PORT 68 |
#define | BOOTREQUEST 1 |
#define | BOOTREPLY 2 |
#define | DHCP_OPTIONS_BUFFER_SIZE 256 |
Functions | |
in_addr_t | dhcp_extract_router_msg (struct buffer *ipbuf) |
in_addr_t dhcp_extract_router_msg | ( | struct buffer * | ipbuf | ) |
Definition at line 149 of file dhcp.c.
References BLEN, BOOTPC_PORT, BOOTPS_PORT, BOOTREPLY, BPTR, openvpn_udphdr::check, D_ROUTE, openvpn_iphdr::daddr, openvpn_udphdr::dest, dhcp_full::dhcp, DHCPACK, DHCPOFFER, do_extract(), gc_free(), gc_new(), get_dhcp_message_type(), dhcp_full::ip, ip_checksum(), msg, dhcp::op, OPENVPN_IPPROTO_UDP, print_in_addr_t(), openvpn_iphdr::protocol, openvpn_iphdr::saddr, openvpn_udphdr::source, and dhcp_full::udp.
Referenced by process_ip_header().