#include <aodv_packet.h>
Collaboration diagram for hdr_aodv_reply:

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 |
|
|
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 }
|
|
|
Definition at line 115 of file aodv_packet.h. |
|
|
Definition at line 117 of file aodv_packet.h. |
|
|
Definition at line 118 of file aodv_packet.h. |
|
|
Definition at line 116 of file aodv_packet.h. |
|
|
Definition at line 120 of file aodv_packet.h. |
|
|
Definition at line 119 of file aodv_packet.h. |
|
|
Definition at line 122 of file aodv_packet.h. |
|
|
Definition at line 114 of file aodv_packet.h. |
1.3.3