OpenVPN
Functions
dhcp.c File Reference
#include "syshead.h"
#include "dhcp.h"
#include "socket.h"
#include "error.h"
#include "memdbg.h"
Include dependency graph for dhcp.c:

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)
 

Function Documentation

◆ dhcp_extract_router_msg()

in_addr_t dhcp_extract_router_msg ( struct buffer ipbuf)

◆ do_extract()

static in_addr_t do_extract ( struct dhcp dhcp,
int  optlen 
)
static

Definition at line 79 of file dhcp.c.

References dest, DHCP_END, DHCP_PAD, DHCP_ROUTER, and in_addr_t.

Referenced by dhcp_extract_router_msg().

◆ get_dhcp_message_type()

static int get_dhcp_message_type ( const struct dhcp dhcp,
const int  optlen 
)
static

Definition at line 39 of file dhcp.c.

References DHCP_END, DHCP_MSG_TYPE, DHCP_PAD, and in_addr_t.

Referenced by dhcp_extract_router_msg().