Go to the source code of this file.
|
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]) |
|
static uint16_t cksum |
( |
void * |
addr, |
|
|
ssize_t |
len |
|
) |
| |
|
static |
int print_packet |
( |
void * |
pck | ) |
|
static ssize_t resolve_arp |
( |
void * |
arp | ) |
|
|
static |
static ssize_t resolve_eth |
( |
struct ether_header * |
eth, |
|
|
void * |
eth_resp |
|
) |
| |
|
static |
static ssize_t resolve_eth_arp |
( |
struct ether_arp * |
eth_arp, |
|
|
void * |
eth_arp_resp, |
|
|
uint8_t |
ip_addr[4] |
|
) |
| |
|
static |
static ssize_t resolve_icmp |
( |
struct icmphdr * |
icmp, |
|
|
void * |
icmp_resp |
|
) |
| |
|
static |
static ssize_t resolve_ip |
( |
struct iphdr * |
ip, |
|
|
void * |
ip_resp, |
|
|
uint8_t |
ip_addr[4] |
|
) |
| |
|
static |
int resolve_packet |
( |
void * |
in_pck, |
|
|
ssize_t |
in_size, |
|
|
void * |
out_pck, |
|
|
uint32_t * |
out_size, |
|
|
uint8_t |
ip_addr[4] |
|
) |
| |