Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

hdr_aodv_reply Struct Reference

#include <aodv_packet.h>

Collaboration diagram for hdr_aodv_reply:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int size ()

Public Attributes

u_int8_t rp_type
u_int8_t reserved [2]
u_int8_t rp_hop_count
nsaddr_t rp_dst
u_int32_t rp_dst_seqno
nsaddr_t rp_src
double rp_lifetime
double rp_timestamp

Member Function Documentation

int hdr_aodv_reply::size  )  [inline]
 

Definition at line 125 of file aodv_packet.h.

References u_int32_t.

00125                     { 
00126   int sz = 0;
00127   /*
00128         sz = sizeof(u_int8_t)           // rp_type
00129              + 2*sizeof(u_int8_t)       // rp_flags + reserved
00130              + sizeof(u_int8_t)         // rp_hop_count
00131              + sizeof(double)           // rp_timestamp
00132              + sizeof(nsaddr_t)         // rp_dst
00133              + sizeof(u_int32_t)        // rp_dst_seqno
00134              + sizeof(nsaddr_t)         // rp_src
00135              + sizeof(u_int32_t);       // rp_lifetime
00136   */
00137         sz = 6*sizeof(u_int32_t);
00138         assert (sz >= 0);
00139         return sz;
00140   }


Member Data Documentation

u_int8_t hdr_aodv_reply::reserved[2]
 

Definition at line 115 of file aodv_packet.h.

nsaddr_t hdr_aodv_reply::rp_dst
 

Definition at line 117 of file aodv_packet.h.

u_int32_t hdr_aodv_reply::rp_dst_seqno
 

Definition at line 118 of file aodv_packet.h.

u_int8_t hdr_aodv_reply::rp_hop_count
 

Definition at line 116 of file aodv_packet.h.

double hdr_aodv_reply::rp_lifetime
 

Definition at line 120 of file aodv_packet.h.

nsaddr_t hdr_aodv_reply::rp_src
 

Definition at line 119 of file aodv_packet.h.

double hdr_aodv_reply::rp_timestamp
 

Definition at line 122 of file aodv_packet.h.

u_int8_t hdr_aodv_reply::rp_type
 

Definition at line 114 of file aodv_packet.h.


The documentation for this struct was generated from the following file:
Generated on Tue Apr 20 12:50:25 2004 for NS2.26SourcesOriginal by doxygen 1.3.3