FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
dhcp4_packet.h File Reference
+ Include dependency graph for dhcp4_packet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dhcp_option_t
 
struct  dhcp_header_t
 

Macros

#define DHCP_FLAG_BROADCAST   (1<<15)
 
#define DHCP_MAGIC   (clib_host_to_net_u32(0x63825363))
 

Typedefs

typedef enum dhcp_packet_option_t_ dhcp_packet_option_t
 

Enumerations

enum  dhcp_packet_type_t {
  DHCP_PACKET_DISCOVER = 1, DHCP_PACKET_OFFER, DHCP_PACKET_REQUEST, DHCP_PACKET_ACK = 5,
  DHCP_PACKET_NAK
}
 
enum  dhcp_packet_option_t_ { DHCP_PACKET_OPTION_MSG_TYPE = 53, DHCP_PACKET_OPTION_END = 0xff }
 

Functions

u8format_dhcp_header (u8 *s, va_list *args)
 
u8format_dhcp_packet_type (u8 *s, va_list *args)
 

Macro Definition Documentation

◆ DHCP_FLAG_BROADCAST

#define DHCP_FLAG_BROADCAST   (1<<15)

Definition at line 42 of file dhcp4_packet.h.

◆ DHCP_MAGIC

#define DHCP_MAGIC   (clib_host_to_net_u32(0x63825363))

Definition at line 74 of file dhcp4_packet.h.

Typedef Documentation

◆ dhcp_packet_option_t

Enumeration Type Documentation

◆ dhcp_packet_option_t_

Enumerator
DHCP_PACKET_OPTION_MSG_TYPE 
DHCP_PACKET_OPTION_END 

Definition at line 67 of file dhcp4_packet.h.

◆ dhcp_packet_type_t

Enumerator
DHCP_PACKET_DISCOVER 
DHCP_PACKET_OFFER 
DHCP_PACKET_REQUEST 
DHCP_PACKET_ACK 
DHCP_PACKET_NAK 

Definition at line 56 of file dhcp4_packet.h.

Function Documentation

◆ format_dhcp_header()

u8* format_dhcp_header ( u8 s,
va_list *  args 
)

Definition at line 48 of file dhcp4_packet.c.

+ Here is the call graph for this function:

◆ format_dhcp_packet_type()

u8* format_dhcp_packet_type ( u8 s,
va_list *  args 
)

Definition at line 22 of file dhcp4_packet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: