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

An outstanding ARP request with queued packets waiting on the response. More...

#include <sr_arpcache.h>

Public Attributes

uint32_t ip
 The IP trying to be resolved by the request. More...
 
time_t sent
 Last time this ARP request was sent. More...
 
uint32_t times_sent
 Number of times this request was sent. More...
 
struct sr_packetpackets
 List of sr_packet waiting on this request to finish. More...
 
struct sr_arpreqnext
 Pointer to the next outstanding ARP request. More...
 

Detailed Description

An outstanding ARP request with queued packets waiting on the response.

Member Data Documentation

◆ ip

uint32_t sr_arpreq::ip

The IP trying to be resolved by the request.

◆ next

struct sr_arpreq* sr_arpreq::next

Pointer to the next outstanding ARP request.

NULL if there are no more in the linked list.

◆ packets

struct sr_packet* sr_arpreq::packets

List of sr_packet waiting on this request to finish.

◆ sent

time_t sr_arpreq::sent

Last time this ARP request was sent.

You should update this. If the ARP request was never sent, will be 0.

◆ times_sent

uint32_t sr_arpreq::times_sent

Number of times this request was sent.

You should update this.


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