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 77 of file dhcp.c.

References DHCP_END, DHCP_PAD, and DHCP_ROUTER.

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 37 of file dhcp.c.

References DHCP_END, DHCP_MSG_TYPE, and DHCP_PAD.

Referenced by dhcp_extract_router_msg().