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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // \} | 129 // \} |
130 ///\brief Statistics: | 130 ///\brief Statistics: |
131 void Report (std::ostream &) const; | 131 void Report (std::ostream &) const; |
132 void ResetStats (); | 132 void ResetStats (); |
133 /// Enable/disable beacons | 133 /// Enable/disable beacons |
134 void SetBeaconGeneration (bool enable); | 134 void SetBeaconGeneration (bool enable); |
135 WifiPhyStandard GetPhyStandard () const; | 135 WifiPhyStandard GetPhyStandard () const; |
136 virtual void FinishConfigureStandard (enum WifiPhyStandard standard); | 136 virtual void FinishConfigureStandard (enum WifiPhyStandard standard); |
137 private: | 137 private: |
138 /// Frame receive handler | 138 /// Frame receive handler |
139 void Receive (Ptr<Packet> packet, WifiMacHeader const *hdr); | 139 void Receive (Ptr<Packet> packet, WifiMacHeader const *hdr, const RadiotapHea
der *radiotaphdr); |
140 /// Send frame. Frame is supposed to be tagged by routing information. TODO: c
larify this point | 140 /// Send frame. Frame is supposed to be tagged by routing information. TODO: c
larify this point |
141 void ForwardDown (Ptr<const Packet> packet, Mac48Address from, Mac48Address t
o); | 141 void ForwardDown (Ptr<const Packet> packet, Mac48Address from, Mac48Address t
o); |
142 /// Send beacon | 142 /// Send beacon |
143 void SendBeacon (); | 143 void SendBeacon (); |
144 /// Schedule next beacon | 144 /// Schedule next beacon |
145 void ScheduleNextBeacon (); | 145 void ScheduleNextBeacon (); |
146 /// Get current beaconing status | 146 /// Get current beaconing status |
147 bool GetBeaconGeneration () const; | 147 bool GetBeaconGeneration () const; |
148 /// Real d-tor | 148 /// Real d-tor |
149 virtual void DoDispose (); | 149 virtual void DoDispose (); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 }; | 184 }; |
185 Statistics m_stats; | 185 Statistics m_stats; |
186 // \} | 186 // \} |
187 /// Current PHY standard: needed to configure metric | 187 /// Current PHY standard: needed to configure metric |
188 WifiPhyStandard m_standard; | 188 WifiPhyStandard m_standard; |
189 }; | 189 }; |
190 | 190 |
191 } // namespace ns3 | 191 } // namespace ns3 |
192 | 192 |
193 #endif /* MESH_WIFI_INTERFACE_MAC_H */ | 193 #endif /* MESH_WIFI_INTERFACE_MAC_H */ |
LEFT | RIGHT |