OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 Hemanth Narra, Yufei Cheng | 3 * Copyright (c) 2010 Hemanth Narra, Yufei Cheng |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 /** | 86 /** |
87 * Assign a fixed random variable stream number to the random variables | 87 * Assign a fixed random variable stream number to the random variables |
88 * used by this model. Return the number of streams (possibly zero) that | 88 * used by this model. Return the number of streams (possibly zero) that |
89 * have been assigned. | 89 * have been assigned. |
90 * | 90 * |
91 * \param stream first stream index to use | 91 * \param stream first stream index to use |
92 * \return the number of stream indices assigned by this model | 92 * \return the number of stream indices assigned by this model |
93 */ | 93 */ |
94 int64_t AssignStreams (int64_t stream); | 94 int64_t AssignStreams (int64_t stream); |
95 | 95 |
| 96 /** |
| 97 * TracedCallback signature for Packet transmit and receive events. |
| 98 * |
| 99 * \param [in] packet |
| 100 */ |
| 101 typedef void (* PacketTxRxTracedCallback)(Ptr<const Packet>packet); |
| 102 |
96 private: | 103 private: |
97 ·· | 104 ·· |
98 // Protocol parameters. | 105 // Protocol parameters. |
99 /// Holdtimes is the multiplicative factor of PeriodicUpdateInterval for which
the node waits since the last update | 106 /// Holdtimes is the multiplicative factor of PeriodicUpdateInterval for which
the node waits since the last update |
100 /// before flushing a route from the routing table. If PeriodicUpdateInterval
is 8s and Holdtimes is 3, the node | 107 /// before flushing a route from the routing table. If PeriodicUpdateInterval
is 8s and Holdtimes is 3, the node |
101 /// waits for 24s since the last update to flush this route from its routing t
able. | 108 /// waits for 24s since the last update to flush this route from its routing t
able. |
102 uint32_t Holdtimes; | 109 uint32_t Holdtimes; |
103 /// PeriodicUpdateInterval specifies the periodic time interval between which
the a node broadcasts | 110 /// PeriodicUpdateInterval specifies the periodic time interval between which
the a node broadcasts |
104 /// its entire routing table. | 111 /// its entire routing table. |
105 Time m_periodicUpdateInterval; | 112 Time m_periodicUpdateInterval; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 /// Notify that packet is dropped for some reason | 199 /// Notify that packet is dropped for some reason |
193 void | 200 void |
194 Drop (Ptr<const Packet>, const Ipv4Header &, Socket::SocketErrno); | 201 Drop (Ptr<const Packet>, const Ipv4Header &, Socket::SocketErrno); |
195 /// Timer to trigger periodic updates from a node | 202 /// Timer to trigger periodic updates from a node |
196 Timer m_periodicUpdateTimer; | 203 Timer m_periodicUpdateTimer; |
197 /// Timer used by the trigger updates in case of Weighted Settling Time is use
d | 204 /// Timer used by the trigger updates in case of Weighted Settling Time is use
d |
198 Timer m_triggeredExpireTimer; | 205 Timer m_triggeredExpireTimer; |
199 | 206 |
200 /// Provides uniform random variables. | 207 /// Provides uniform random variables. |
201 Ptr<UniformRandomVariable> m_uniformRandomVariable;·· | 208 Ptr<UniformRandomVariable> m_uniformRandomVariable;·· |
| 209 |
| 210 /// Rx packet trace. |
| 211 TracedCallback <Ptr<const Packet>> m_rxPacketTrace; |
| 212 |
| 213 /// Tx packet trace. |
| 214 TracedCallback <Ptr<const Packet>> m_txPacketTrace; |
202 }; | 215 }; |
203 | 216 |
204 } | 217 } |
205 } | 218 } |
206 | 219 |
207 #endif /* DSDV_ROUTING_PROTOCOL_H */ | 220 #endif /* DSDV_ROUTING_PROTOCOL_H */ |
OLD | NEW |