|
415 |
|
415 |
|
416 |
/** |
416 |
/** |
417 |
* |
417 |
* |
418 |
* Public method used to fire a PromiscSniffer trace for a wifi packet being received. Implemented for encapsulation |
418 |
* Public method used to fire a MonitorSniffer trace for a wifi packet being received. Implemented for encapsulation |
419 |
* purposes. |
419 |
* purposes. |
420 |
* |
420 |
* |
421 |
* @param packet the packet being received |
421 |
* @param packet the packet being received |
|
433 |
* @param signalDbm signal power in dBm |
433 |
* @param signalDbm signal power in dBm |
434 |
* @param noiseDbm noise power in dBm |
434 |
* @param noiseDbm noise power in dBm |
435 |
*/ |
435 |
*/ |
436 |
void NotifyPromiscSniffRx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, |
436 |
void NotifyMonitorSniffRx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, |
437 |
double signalDbm, double noiseDbm); |
437 |
double signalDbm, double noiseDbm); |
438 |
|
438 |
|
439 |
/** |
439 |
/** |
440 |
* |
440 |
* |
441 |
* Public method used to fire a PromiscSniffer trace for a wifi packet being transmitted. Implemented for encapsulation |
441 |
* Public method used to fire a MonitorSniffer trace for a wifi packet being transmitted. Implemented for encapsulation |
442 |
* purposes. |
442 |
* purposes. |
443 |
* |
443 |
* |
444 |
* @param packet the packet being transmitted |
444 |
* @param packet the packet being transmitted |
|
449 |
* units used both for the radiotap and for the prism header) |
449 |
* units used both for the radiotap and for the prism header) |
450 |
* @param isShortPreamble true if short preamble is used, false otherwise |
450 |
* @param isShortPreamble true if short preamble is used, false otherwise |
451 |
*/ |
451 |
*/ |
452 |
void NotifyPromiscSniffTx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble); |
452 |
void NotifyMonitorSniffTx (Ptr<const Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble); |
453 |
|
453 |
|
454 |
|
454 |
|
455 |
private: |
455 |
private: |
|
510 |
* |
510 |
* |
511 |
* \see class CallBackTraceSource |
511 |
* \see class CallBackTraceSource |
512 |
*/ |
512 |
*/ |
513 |
TracedCallback<Ptr<const Packet>, uint16_t, uint16_t, uint32_t, bool, double, double> m_phyPromiscSniffRxTrace; |
513 |
TracedCallback<Ptr<const Packet>, uint16_t, uint16_t, uint32_t, bool, double, double> m_phyMonitorSniffRxTrace; |
514 |
|
514 |
|
515 |
/** |
515 |
/** |
516 |
* A trace source that emulates a wifi device in monitor mode |
516 |
* A trace source that emulates a wifi device in monitor mode |
|
522 |
* |
522 |
* |
523 |
* \see class CallBackTraceSource |
523 |
* \see class CallBackTraceSource |
524 |
*/ |
524 |
*/ |
525 |
TracedCallback<Ptr<const Packet>, uint16_t, uint16_t, uint32_t, bool> m_phyPromiscSniffTxTrace; |
525 |
TracedCallback<Ptr<const Packet>, uint16_t, uint16_t, uint32_t, bool> m_phyMonitorSniffTxTrace; |
526 |
|
526 |
|
527 |
}; |
527 |
}; |
528 |
|
528 |
|