CS43 Lab7 - A Router Stack  1.2019
Public Attributes | List of all members
sr_ip_hdr Struct Reference

Struct of an IP header, without options. More...

#include <sr_protocol.h>

Public Attributes

uint8_t ip_tos
 type of service
 
uint16_t ip_len
 total length
 
uint16_t ip_id
 identification
 
uint16_t ip_off
 fragment offset field
 
uint8_t ip_ttl
 time to live
 
uint8_t ip_p
 protocol of encapsulated packet
 
uint16_t ip_sum
 IP checksum.
 
uint32_t ip_src
 src IP address
 
uint32_t ip_dst
 dest IP address
 

Detailed Description

Struct of an IP header, without options.


The documentation for this struct was generated from the following file: