add wifi pcap output

Mathieu Lacage 2007-03-29 22:49:28 +02:00
parent 90107197c7
commit fbb179e7a6
2 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace ns3 {
enum {
PCAP_ETHERNET = 1,
PCAP_RAW_IP = 101,
PCAP_80211 = 105,
};
PcapWriter::PcapWriter ()
@ -65,6 +66,12 @@ PcapWriter::WriteIpHeader (void)
WriteHeader (PCAP_RAW_IP);
}
void
PcapWriter::WriteWifiHeader (void)
{
WriteHeader (PCAP_80211);
}
void
PcapWriter::WriteHeader (uint32_t network)
{

View File

@ -59,6 +59,8 @@ public:
void WriteIpHeader (void);
void WriteWifiHeader (void);
/**
* \param packet packet to write to output file
*/