35 uint16_t cksum(
const void *_data,
int len);
37 uint16_t ethertype(uint8_t *buf);
38 uint8_t ip_protocol(uint8_t *buf);
40 void print_addr_eth(uint8_t *addr);
41 void print_addr_ip(
struct in_addr address);
42 void print_addr_ip_int(uint32_t ip);
44 void print_hdr_eth(uint8_t *buf);
45 void print_hdr_ip(uint8_t *buf);
46 void print_hdr_icmp(uint8_t *buf);
47 void print_hdr_arp(uint8_t *buf);
50 void print_hdrs(uint8_t *buf, uint32_t length);