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

Struct of an ARP header. More...

#include <sr_protocol.h>

Public Attributes

unsigned short ar_hrd
 format of hardware address
 
unsigned short ar_pro
 format of protocol address
 
unsigned char ar_hln
 length of hardware address
 
unsigned char ar_pln
 length of protocol address
 
unsigned short ar_op
 ARP opcode (command)
 
unsigned char ar_sha [ETHER_ADDR_LEN]
 sender hardware address
 
uint32_t ar_sip
 sender IP address
 
unsigned char ar_tha [ETHER_ADDR_LEN]
 target hardware address
 
uint32_t ar_tip
 target IP address
 

Detailed Description

Struct of an ARP header.


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