|
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_DOMAIN_SERVER 6 |
| #define | DHCP_DOMAIN_NAME 15 |
| #define | DHCP_NTP_SERVER 42 |
| #define | DHCP_VENDOR 43 |
| #define | DHCP_NETBIOS_DOMAIN_SERVER 44 |
| #define | DHCP_NETBIOS_DIST_SERVER 45 |
| #define | DHCP_NETBIOS_NODE_TYPE 46 |
| #define | DHCP_NETBIOS_SCOPE 47 |
| #define | DHCP_MSG_TYPE 53 |
| #define | DHCP_DOMAIN_SEARCH 119 |
| #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) |
| bool | build_dhcp_options_string (struct buffer *buf, const struct tuntap_options *o) |
| bool build_dhcp_options_string | ( | struct buffer * | buf, |
| const struct tuntap_options * | o | ||
| ) |
Definition at line 330 of file dhcp.c.
References buf_safe(), buf_write_u32(), buf_write_u8(), DHCP_DOMAIN_NAME, DHCP_DOMAIN_SEARCH, DHCP_DOMAIN_SERVER, DHCP_NETBIOS_DIST_SERVER, DHCP_NETBIOS_DOMAIN_SERVER, DHCP_NETBIOS_NODE_TYPE, DHCP_NETBIOS_SCOPE, DHCP_NTP_SERVER, DHCP_VENDOR, tuntap_options::disable_nbt, tuntap_options::dns, tuntap_options::dns_len, tuntap_options::domain, tuntap_options::domain_search_list, tuntap_options::domain_search_list_len, M_WARN, msg, tuntap_options::nbdd, tuntap_options::nbdd_len, tuntap_options::netbios_node_type, tuntap_options::netbios_scope, tuntap_options::ntp, tuntap_options::ntp_len, tuntap_options::wins, tuntap_options::wins_len, write_dhcp_search_str(), write_dhcp_str(), write_dhcp_u32_array(), and write_dhcp_u8().
Referenced by tuntap_dhcp_mask().
| in_addr_t dhcp_extract_router_msg | ( | struct buffer * | ipbuf | ) |
Definition at line 148 of file dhcp.c.
References BLEN, BOOTPC_PORT, BOOTPS_PORT, BOOTREPLY, BPTR, D_ROUTE, DHCPACK, DHCPOFFER, do_extract(), gc, gc_free(), gc_new(), get_dhcp_message_type(), ip_checksum(), openvpn_udphdr::len, msg, OPENVPN_IPPROTO_UDP, and print_in_addr_t().
Referenced by process_ip_header().