LEFT | RIGHT |
(no file at all) | |
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) 2009 IITP RAS | 3 * Copyright (c) 2009 IITP RAS |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 */ | 88 */ |
89 int64_t AssignStreams (int64_t stream); | 89 int64_t AssignStreams (int64_t stream); |
90 ///\name Statistics | 90 ///\name Statistics |
91 // \{ | 91 // \{ |
92 void Report (std::ostream &) const; | 92 void Report (std::ostream &) const; |
93 void ResetStats (); | 93 void ResetStats (); |
94 uint32_t GetLinkMetric (Mac48Address peerAddress); | 94 uint32_t GetLinkMetric (Mac48Address peerAddress); |
95 // \} | 95 // \} |
96 | 96 |
97 private: | 97 private: |
98 /// assignment operator | 98 /** |
99 PeerManagementProtocolMac& operator= (const PeerManagementProtocolMac &); | 99 * assignment operator |
| 100 * |
| 101 * \param peer the object to assign |
| 102 * \returns the assigned value |
| 103 */ |
| 104 PeerManagementProtocolMac& operator= (const PeerManagementProtocolMac & peer); |
100 /// type conversion operator | 105 /// type conversion operator |
101 PeerManagementProtocolMac (const PeerManagementProtocolMac &); | 106 PeerManagementProtocolMac (const PeerManagementProtocolMac &); |
102 | 107 |
| 108 /// allow PeerManagementProtocol class access friend access |
103 friend class PeerManagementProtocol; | 109 friend class PeerManagementProtocol; |
| 110 /// allow PeerLink class access friend access |
104 friend class PeerLink; | 111 friend class PeerLink; |
105 ///\name Create peer link management frames | 112 ///\name Create peer link management frames |
106 // \{ | 113 // \{ |
107 /** | 114 /** |
108 * \brief This structure keeps all fields in peer link management frame, | 115 * \brief This structure keeps all fields in peer link management frame, |
109 * which are not subclasses of WifiInformationElement | 116 * which are not subclasses of WifiInformationElement |
110 */ | 117 */ |
111 struct PlinkFrameStart | 118 struct PlinkFrameStart |
112 { | 119 { |
113 uint8_t subtype; ///< subtype | 120 uint8_t subtype; ///< subtype |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 * \param peerElement IePeerManagement | 173 * \param peerElement IePeerManagement |
167 * \param meshConfig IeConfiguration | 174 * \param meshConfig IeConfiguration |
168 */ | 175 */ |
169 void SendPeerLinkManagementFrame ( | 176 void SendPeerLinkManagementFrame ( |
170 Mac48Address peerAddress, | 177 Mac48Address peerAddress, |
171 Mac48Address peerMpAddress, | 178 Mac48Address peerMpAddress, |
172 uint16_t aid, | 179 uint16_t aid, |
173 IePeerManagement peerElement, | 180 IePeerManagement peerElement, |
174 IeConfiguration meshConfig | 181 IeConfiguration meshConfig |
175 ); | 182 ); |
176 ///\brief debug only, used to print established links | 183 /** |
| 184 * \brief debug only, used to print established links |
| 185 * \returns the MAC address |
| 186 */ |
177 Mac48Address GetAddress () const; | 187 Mac48Address GetAddress () const; |
178 /// Statistics structure | 188 /// Statistics structure |
179 struct Statistics | 189 struct Statistics |
180 { | 190 { |
181 uint16_t txOpen; ///< transmit open | 191 uint16_t txOpen; ///< transmit open |
182 uint16_t txConfirm; ///< transmit confirm | 192 uint16_t txConfirm; ///< transmit confirm |
183 uint16_t txClose; ///< transmit close | 193 uint16_t txClose; ///< transmit close |
184 uint16_t rxOpen; ///< receive open | 194 uint16_t rxOpen; ///< receive open |
185 uint16_t rxConfirm; ///< receive confirm | 195 uint16_t rxConfirm; ///< receive confirm |
186 uint16_t rxClose; ///< receive close | 196 uint16_t rxClose; ///< receive close |
(...skipping 20 matching lines...) Expand all Loading... |
207 Ptr<MeshWifiInterfaceMac> m_parent; ///< parent | 217 Ptr<MeshWifiInterfaceMac> m_parent; ///< parent |
208 uint32_t m_ifIndex; ///< IF index | 218 uint32_t m_ifIndex; ///< IF index |
209 Ptr<PeerManagementProtocol> m_protocol; ///< protocol | 219 Ptr<PeerManagementProtocol> m_protocol; ///< protocol |
210 }; | 220 }; |
211 | 221 |
212 } // namespace dot11s | 222 } // namespace dot11s |
213 } // namespace ns3 | 223 } // namespace ns3 |
214 | 224 |
215 #endif /* PEER_MANAGEMENT_PROTOCOL_MAC_H */ | 225 #endif /* PEER_MANAGEMENT_PROTOCOL_MAC_H */ |
216 | 226 |
LEFT | RIGHT |