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) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 virtual Ptr<Node> GetNode (void) const; | 94 virtual Ptr<Node> GetNode (void) const; |
95 virtual void SetNode (Ptr<Node> node); | 95 virtual void SetNode (Ptr<Node> node); |
96 virtual bool NeedsArp (void) const; | 96 virtual bool NeedsArp (void) const; |
97 virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb); | 97 virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb); |
98 | 98 |
99 virtual Address GetMulticast (Ipv6Address addr) const; | 99 virtual Address GetMulticast (Ipv6Address addr) const; |
100 | 100 |
101 virtual bool SendFrom(Ptr<Packet> packet, const Address& source, const Address
& dest, uint16_t protocolNumber); | 101 virtual bool SendFrom(Ptr<Packet> packet, const Address& source, const Address
& dest, uint16_t protocolNumber); |
102 virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb); | 102 virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb); |
103 virtual bool SupportsSendFrom (void) const; | 103 virtual bool SupportsSendFrom (void) const; |
| 104 // added for wifi-net-device-virtualizer |
| 105 void VirtualizerCompleteConfig (void); |
104 | 106 |
105 private: | 107 private: |
106 | 108 |
107 // This value conforms to the 802.11 specification | 109 // This value conforms to the 802.11 specification |
108 static const uint16_t MAX_MSDU_SIZE = 2304; | 110 static const uint16_t MAX_MSDU_SIZE = 2304; |
109 | 111 |
110 virtual void DoDispose (void); | 112 virtual void DoDispose (void); |
111 virtual void DoStart (void); | 113 virtual void DoStart (void); |
112 void ForwardUp (Ptr<Packet> packet, Mac48Address from, Mac48Address to); | 114 void ForwardUp (Ptr<Packet> packet, Mac48Address from, Mac48Address to); |
113 void LinkUp (void); | 115 void LinkUp (void); |
(...skipping 15 matching lines...) Expand all Loading... |
129 uint32_t m_ifIndex; | 131 uint32_t m_ifIndex; |
130 bool m_linkUp; | 132 bool m_linkUp; |
131 TracedCallback<> m_linkChanges; | 133 TracedCallback<> m_linkChanges; |
132 mutable uint16_t m_mtu; | 134 mutable uint16_t m_mtu; |
133 bool m_configComplete; | 135 bool m_configComplete; |
134 }; | 136 }; |
135 | 137 |
136 } // namespace ns3 | 138 } // namespace ns3 |
137 | 139 |
138 #endif /* WIFI_NET_DEVICE_H */ | 140 #endif /* WIFI_NET_DEVICE_H */ |
OLD | NEW |