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 MIRKO BANCHI | 3 * Copyright (c) 2009 MIRKO BANCHI |
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 * for more details see 7.2.1.8 in IEEE 802.11n/D4.00 | 367 * for more details see 7.2.1.8 in IEEE 802.11n/D4.00 |
368 * | 368 * |
369 * \param seq the sequence number | 369 * \param seq the sequence number |
370 * | 370 * |
371 * \return If we are using basic block ack, return value represents index of | 371 * \return If we are using basic block ack, return value represents index of |
372 * block of 16 bits for packet having sequence number equals to <i>seq</i>. | 372 * block of 16 bits for packet having sequence number equals to <i>seq</i>. |
373 * If we are using compressed block ack, return value represents bit | 373 * If we are using compressed block ack, return value represents bit |
374 * to set to 1 in the compressed bitmap to indicate that packet having | 374 * to set to 1 in the compressed bitmap to indicate that packet having |
375 * sequence number equals to <i>seq</i> was correctly received. | 375 * sequence number equals to <i>seq</i> was correctly received. |
376 */ | 376 */ |
377 uint8_t IndexInBitmap (uint16_t seq) const; | 377 uint16_t IndexInBitmap (uint16_t seq) const; |
378 | 378 |
379 /** | 379 /** |
380 * Checks if sequence number <i>seq</i> can be acknowledged in the bitmap. | 380 * Checks if sequence number <i>seq</i> can be acknowledged in the bitmap. |
381 * | 381 * |
382 * \param seq the sequence number | 382 * \param seq the sequence number |
383 * | 383 * |
384 * \return | 384 * \return |
385 */ | 385 */ |
386 bool IsInBitmap (uint16_t seq) const; | 386 bool IsInBitmap (uint16_t seq) const; |
387 | 387 |
(...skipping 12 matching lines...) Expand all Loading... |
400 union | 400 union |
401 { | 401 { |
402 uint16_t m_bitmap[64]; ///< the block ack bitmap | 402 uint16_t m_bitmap[64]; ///< the block ack bitmap |
403 uint64_t m_compressedBitmap; ///< the compressed block ack bitmap | 403 uint64_t m_compressedBitmap; ///< the compressed block ack bitmap |
404 } bitmap; ///< bitmap union type | 404 } bitmap; ///< bitmap union type |
405 }; | 405 }; |
406 | 406 |
407 } //namespace ns3 | 407 } //namespace ns3 |
408 | 408 |
409 #endif /* CTRL_HEADERS_H */ | 409 #endif /* CTRL_HEADERS_H */ |
LEFT | RIGHT |