FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
icmp_proto.c File Reference
+ Include dependency graph for icmp_proto.c:

Go to the source code of this file.

Functions

static uint16_t cksum (void *addr, ssize_t len)
 
int print_packet (void *pck)
 
static ssize_t resolve_arp (void *arp)
 
static ssize_t resolve_eth_arp (struct ether_arp *eth_arp, void *eth_arp_resp, uint8_t ip_addr[4])
 
static ssize_t resolve_eth (struct ether_header *eth, void *eth_resp)
 
static ssize_t resolve_ip (struct iphdr *ip, void *ip_resp, uint8_t ip_addr[4])
 
static ssize_t resolve_icmp (struct icmphdr *icmp, void *icmp_resp)
 
int resolve_packet (void *in_pck, ssize_t in_size, void *out_pck, uint32_t *out_size, uint8_t ip_addr[4])
 

Function Documentation

static uint16_t cksum ( void *  addr,
ssize_t  len 
)
static

Definition at line 44 of file icmp_proto.c.

+ Here is the caller graph for this function:

int print_packet ( void *  pck)

Definition at line 72 of file icmp_proto.c.

+ Here is the caller graph for this function:

static ssize_t resolve_arp ( void *  arp)
static

Definition at line 111 of file icmp_proto.c.

+ Here is the caller graph for this function:

static ssize_t resolve_eth ( struct ether_header *  eth,
void *  eth_resp 
)
static

Definition at line 149 of file icmp_proto.c.

+ Here is the caller graph for this function:

static ssize_t resolve_eth_arp ( struct ether_arp *  eth_arp,
void *  eth_arp_resp,
uint8_t  ip_addr[4] 
)
static

Definition at line 128 of file icmp_proto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ssize_t resolve_icmp ( struct icmphdr *  icmp,
void *  icmp_resp 
)
static

Definition at line 192 of file icmp_proto.c.

+ Here is the caller graph for this function:

static ssize_t resolve_ip ( struct iphdr *  ip,
void *  ip_resp,
uint8_t  ip_addr[4] 
)
static

Definition at line 168 of file icmp_proto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int resolve_packet ( void *  in_pck,
ssize_t  in_size,
void *  out_pck,
uint32_t *  out_size,
uint8_t  ip_addr[4] 
)

Definition at line 206 of file icmp_proto.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: