39#ifndef HDR_SUN_PATH_EST_H
40#define HDR_SUN_PATH_EST_H
46#define HDR_SUN_PATH_EST(p) (hdr_sun_path_est::access(p))
hdr_sun_path_est describes path establishment packets used by UWSUN
uint8_t & sinkAssociated()
Reference to the sink_associated_ variable.
static int & offset()
Reference to the offset_ variable.
uint8_t sink_associated_
IP of the sink associated with the packet.
uint8_t list_of_hops_[MAX_HOP_NUMBER]
List of IPs saved in the header.
uint8_t * list_of_hops()
Pointer to the list_of_hops_ variable.
static struct hdr_sun_path_est * access(const Packet *p)
packet_path_est ptype_
Idientifier of the packet type: PATH_SEARCH, PATH_ANSWER or PATH_ERROR.
packet_path_est & ptype()
Reference to the ptype_ variable.
float quality_
Used to save information about the "quality" of the metric used.
static int offset_
Required by the PacketHeaderManager.
float & quality()
Reference to the quality_ variable.
u_int8_t & list_of_hops_length()
Reference to the list_of_hops_length_ variable.
int8_t pointer_to_list_of_hops_
Pointer used to keep track of the last IPs processed.
int8_t & pointer()
Reference to the pointer_to_list_of_hops_ variable.
uint8_t list_of_hops_length_
Current number of IPs stored in the header.
Common structures and definition used by SUN.
static const int MAX_HOP_NUMBER
Maximum number of hops contained in a SUN Path Establishment packet.