|
OpenVPN
|
#include "syshead.h"#include "dhcp.h"#include "socket_util.h"#include "error.h"#include "memdbg.h"

Go to the source code of this file.
Functions | |
| static int | get_dhcp_message_type (const struct dhcp *dhcp, const int optlen) |
| static in_addr_t | do_extract (struct dhcp *dhcp, int optlen) |
| in_addr_t | dhcp_extract_router_msg (struct buffer *ipbuf) |
| static void | write_dhcp_u8 (struct buffer *buf, const uint8_t type, const uint8_t data, bool *error) |
| static void | write_dhcp_u32_array (struct buffer *buf, const uint8_t type, const uint32_t *data, const unsigned int len, bool *error) |
| static void | write_dhcp_str (struct buffer *buf, const uint8_t type, const char *str, bool *error) |
| static void | write_dhcp_search_str (struct buffer *buf, const uint8_t type, const char *const *str_array, int array_len, bool *error) |
| 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().
|
static |
Definition at line 76 of file dhcp.c.
References DHCP_END, DHCP_PAD, DHCP_ROUTER, and i.
Referenced by dhcp_extract_router_msg().
|
static |
Definition at line 36 of file dhcp.c.
References DHCP_END, DHCP_MSG_TYPE, DHCP_PAD, and i.
Referenced by dhcp_extract_router_msg().
|
static |
Definition at line 269 of file dhcp.c.
References buf_safe(), buf_write(), buf_write_u8(), i, M_WARN, and msg.
Referenced by build_dhcp_options_string(), and test_write_dhcp_search_str().
|
static |
Definition at line 240 of file dhcp.c.
References buf_safe(), buf_write(), buf_write_u8(), M_WARN, and msg.
Referenced by build_dhcp_options_string().
|
static |
Definition at line 211 of file dhcp.c.
References buf_safe(), buf_write_u32(), buf_write_u8(), i, M_WARN, and msg.
Referenced by build_dhcp_options_string().
|
static |
Definition at line 197 of file dhcp.c.
References buf_safe(), buf_write_u8(), M_WARN, and msg.
Referenced by build_dhcp_options_string().