Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(951)

Side by Side Diff: src/devices/mesh/dot11s/ie-dot11s-preq.h

Issue 840046: ns-3: Enhance WifiInformationElement and use in Wi-Fi module (Closed)
Patch Set: Enhance and use WifiInformationElement and friends Created 14 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/devices/mesh/dot11s/ie-dot11s-prep.cc ('k') | src/devices/mesh/dot11s/ie-dot11s-preq.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) 2008,2009 IITP RAS 3 * Copyright (c) 2008,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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 * \brief Checks that preq's originator address equals to originator, and 116 * \brief Checks that preq's originator address equals to originator, and
117 * this preq is not proactive 117 * this preq is not proactive
118 */ 118 */
119 bool MayAddAddress (Mac48Address originator); 119 bool MayAddAddress (Mac48Address originator);
120 bool IsFull () const; 120 bool IsFull () const;
121 /** 121 /**
122 * \name Inherited from WifiInformationElement 122 * \name Inherited from WifiInformationElement
123 * \{ 123 * \{
124 */ 124 */
125 virtual WifiElementId ElementId () const; 125 virtual WifiElementId ElementId () const;
126 virtual void SerializeInformation (Buffer::Iterator i) const; 126 virtual uint8_t SerializeInformation (Buffer::Iterator &i) const;
127 virtual uint8_t DeserializeInformation (Buffer::Iterator i, uint8_t length); 127 virtual uint8_t DeserializeInformation (Buffer::Iterator &i,
128 uint8_t length);
128 virtual uint8_t GetInformationSize () const; 129 virtual uint8_t GetInformationSize () const;
129 virtual void Print (std::ostream& os) const; 130 virtual void Print (std::ostream& os) const;
130 ///\} 131 ///\}
131 private: 132 private:
132 /** 133 /**
133 * how many destinations we support 134 * how many destinations we support
134 */ 135 */
135 uint8_t m_maxSize; //TODO: make as an attrubute 136 uint8_t m_maxSize; //TODO: make as an attrubute
136 /** 137 /**
137 * Fields of information element: 138 * Fields of information element:
(...skipping 13 matching lines...) Expand all
151 }; 152 };
152 153
153 bool operator== (const DestinationAddressUnit & a, const DestinationAddressUnit & b); 154 bool operator== (const DestinationAddressUnit & a, const DestinationAddressUnit & b);
154 bool operator== (const IePreq & a, const IePreq & b); 155 bool operator== (const IePreq & a, const IePreq & b);
155 std::ostream &operator << (std::ostream &os, const IePreq &preq); 156 std::ostream &operator << (std::ostream &os, const IePreq &preq);
156 157
157 } // namespace dot11s 158 } // namespace dot11s
158 } //namespace ns3 159 } //namespace ns3
159 #endif 160 #endif
160 161
OLDNEW
« no previous file with comments | « src/devices/mesh/dot11s/ie-dot11s-prep.cc ('k') | src/devices/mesh/dot11s/ie-dot11s-preq.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b