|
193 |
// ibss parameter set |
193 |
// ibss parameter set |
194 |
//XXX |
194 |
//XXX |
195 |
Buffer::Iterator i = start; |
195 |
Buffer::Iterator i = start; |
196 |
i.WriteHtonU64 (Simulator::Now ().GetMicroSeconds ()); |
196 |
i.WriteHtolsbU64 (Simulator::Now ().GetMicroSeconds ()); |
197 |
i.WriteHtonU16 (m_beaconInterval / 1024); |
197 |
i.WriteHtolsbU16 (m_beaconInterval / 1024); |
198 |
i = m_capability.Serialize (i); |
198 |
i = m_capability.Serialize (i); |
199 |
i = m_ssid.Serialize (i); |
199 |
i = m_ssid.Serialize (i); |
200 |
i = m_rates.Serialize (i); |
200 |
i = m_rates.Serialize (i); |
|
204 |
MgtProbeResponseHeader::Deserialize (Buffer::Iterator start) |
204 |
MgtProbeResponseHeader::Deserialize (Buffer::Iterator start) |
205 |
{ |
205 |
{ |
206 |
Buffer::Iterator i = start; |
206 |
Buffer::Iterator i = start; |
207 |
m_timestamp = i.ReadNtohU64(); |
207 |
m_timestamp = i.ReadLsbtohU64(); |
208 |
m_beaconInterval = i.ReadNtohU16 (); |
208 |
m_beaconInterval = i.ReadLsbtohU16 (); |
209 |
m_beaconInterval *= 1024; |
209 |
m_beaconInterval *= 1024; |
210 |
i = m_capability.Deserialize (i); |
210 |
i = m_capability.Deserialize (i); |
211 |
i = m_ssid.Deserialize (i); |
211 |
i = m_ssid.Deserialize (i); |
|
292 |
{ |
292 |
{ |
293 |
Buffer::Iterator i = start; |
293 |
Buffer::Iterator i = start; |
294 |
i = m_capability.Serialize (i); |
294 |
i = m_capability.Serialize (i); |
295 |
i.WriteHtonU16 (m_listenInterval); |
295 |
i.WriteHtolsbU16 (m_listenInterval); |
296 |
i = m_ssid.Serialize (i); |
296 |
i = m_ssid.Serialize (i); |
297 |
i = m_rates.Serialize (i); |
297 |
i = m_rates.Serialize (i); |
298 |
} |
298 |
} |
|
301 |
{ |
301 |
{ |
302 |
Buffer::Iterator i = start; |
302 |
Buffer::Iterator i = start; |
303 |
i = m_capability.Deserialize (i); |
303 |
i = m_capability.Deserialize (i); |
304 |
m_listenInterval = i.ReadNtohU16 (); |
304 |
m_listenInterval = i.ReadLsbtohU16 (); |
305 |
i = m_ssid.Deserialize (i); |
305 |
i = m_ssid.Deserialize (i); |
306 |
i = m_rates.Deserialize (i); |
306 |
i = m_rates.Deserialize (i); |
307 |
return i.GetDistanceFrom (start); |
307 |
return i.GetDistanceFrom (start); |
|
377 |
Buffer::Iterator i = start; |
377 |
Buffer::Iterator i = start; |
378 |
i = m_capability.Serialize (i); |
378 |
i = m_capability.Serialize (i); |
379 |
i = m_code.Serialize (i); |
379 |
i = m_code.Serialize (i); |
380 |
i.WriteHtonU16 (m_aid); |
380 |
i.WriteHtolsbU16 (m_aid); |
381 |
i = m_rates.Serialize (i); |
381 |
i = m_rates.Serialize (i); |
382 |
} |
382 |
} |
383 |
uint32_t |
383 |
uint32_t |
|
386 |
Buffer::Iterator i = start; |
386 |
Buffer::Iterator i = start; |
387 |
i = m_capability.Deserialize (i); |
387 |
i = m_capability.Deserialize (i); |
388 |
i = m_code.Deserialize (i); |
388 |
i = m_code.Deserialize (i); |
389 |
m_aid = i.ReadNtohU16 (); |
389 |
m_aid = i.ReadLsbtohU16 (); |
390 |
i = m_rates.Deserialize (i); |
390 |
i = m_rates.Deserialize (i); |
391 |
return i.GetDistanceFrom (start); |
391 |
return i.GetDistanceFrom (start); |
392 |
} |
392 |
} |