Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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) 2006, 2009 INRIA | 3 * Copyright (c) 2006, 2009 INRIA |
4 * Copyright (c) 2009 MIRKO BANCHI | |
5 * | 4 * |
6 * 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 |
7 * 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 |
8 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
9 * | 8 * |
10 * 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
14 * | 13 * |
15 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
16 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 * | 17 * |
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
20 * Author: Mirko Banchi <mk.banchi@gmail.com> | |
Nicola Baldo
2010/10/04 16:54:25
Is there really any code by Mirko which you added
Dean
2010/10/10 20:10:52
Possibly not, but because I was merging qadhoc-wif
| |
21 */ | 19 */ |
22 #ifndef ADHOC_WIFI_MAC_H | 20 #ifndef ADHOC_WIFI_MAC_H |
23 #define ADHOC_WIFI_MAC_H | 21 #define ADHOC_WIFI_MAC_H |
24 | 22 |
25 #include "regular-wifi-mac.h" | 23 #include "regular-wifi-mac.h" |
26 | |
27 #include "amsdu-subframe-header.h" | |
Nicola Baldo
2010/10/04 16:54:25
is this really needed?
Dean
2010/10/10 20:10:52
No. I've removed it and (at least some) other poin
| |
28 | 24 |
29 namespace ns3 { | 25 namespace ns3 { |
30 | 26 |
31 class AdhocWifiMac : public RegularWifiMac | 27 class AdhocWifiMac : public RegularWifiMac |
32 { | 28 { |
33 public: | 29 public: |
34 static TypeId GetTypeId (void); | 30 static TypeId GetTypeId (void); |
35 | 31 |
36 AdhocWifiMac (); | 32 AdhocWifiMac (); |
37 virtual ~AdhocWifiMac (); | 33 virtual ~AdhocWifiMac (); |
38 | 34 |
39 /** | 35 /** \name Member Functions Inherited from RegularWifiMac */ |
40 * \param address the current address of this MAC layer. | 36 /*@{*/ |
41 */ | |
42 virtual void SetAddress (Mac48Address address); | 37 virtual void SetAddress (Mac48Address address); |
43 | |
44 /** | |
45 * \param linkUp the callback to invoke when the link becomes up. | |
46 */ | |
47 virtual void SetLinkUpCallback (Callback<void> linkUp); | 38 virtual void SetLinkUpCallback (Callback<void> linkUp); |
48 | |
49 /** | |
50 * \param packet the packet to send. | |
51 * \param to the address to which the packet should be sent. | |
52 * | |
53 * The packet should be enqueued in a tx queue, and should be | |
54 * dequeued as soon as the channel access function determines that | |
55 * access is granted to this MAC. | |
56 */ | |
57 virtual void Enqueue (Ptr<const Packet> packet, Mac48Address to); | 39 virtual void Enqueue (Ptr<const Packet> packet, Mac48Address to); |
58 | 40 |
59 private: | 41 private: |
60 virtual void Receive (Ptr<Packet> packet, const WifiMacHeader *hdr); | 42 virtual void Receive (Ptr<Packet> packet, const WifiMacHeader *hdr); |
43 /*@}*/ | |
61 }; | 44 }; |
62 | 45 |
63 } // namespace ns3 | 46 } // namespace ns3 |
64 | 47 |
65 #endif /* ADHOC_WIFI_MAC_H */ | 48 #endif /* ADHOC_WIFI_MAC_H */ |
LEFT | RIGHT |