CS43 Lab7 - A Router Stack  1.2019
Functions
sr_utils.h File Reference

Utility functions for inspecting packets. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t cksum (const void *_data, int len)
 
uint16_t ethertype (uint8_t *buf)
 
uint8_t ip_protocol (uint8_t *buf)
 
void print_addr_eth (uint8_t *addr)
 
void print_addr_ip (struct in_addr address)
 
void print_addr_ip_int (uint32_t ip)
 
void print_hdr_eth (uint8_t *buf)
 
void print_hdr_ip (uint8_t *buf)
 
void print_hdr_icmp (uint8_t *buf)
 
void print_hdr_arp (uint8_t *buf)
 
void print_hdrs (uint8_t *buf, uint32_t length)
 

Detailed Description

Utility functions for inspecting packets.