X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FWLANPacket.cc;h=47011b2f82a101e034e0072b1b508ce644d156d0;hb=482523171f06cf239fd7e8c991f81711c02cf0ba;hp=ba4fafee4cf418b14e90df95978209c21ef8c906;hpb=82e794070d4f3ae8aacb1827b21a93b9d48ce57f;p=senf.git diff --git a/senf/Packets/80211Bundle/WLANPacket.cc b/senf/Packets/80211Bundle/WLANPacket.cc index ba4fafe..47011b2 100644 --- a/senf/Packets/80211Bundle/WLANPacket.cc +++ b/senf/Packets/80211Bundle/WLANPacket.cc @@ -22,15 +22,16 @@ // Definition of non-inline non-template functions -// Custom includes #include "WLANPacket.hh" -#include +//#include "WLANPacket.ih" + +// Custom includes #include #define prefix_ +///////////////////////////////cc.p/////////////////////////////////////// namespace { - void dumpBase(senf::WLANPacketParser const & p, std::ostream & os) { os << " version : " << unsigned(p.version()) <<"\n" @@ -81,32 +82,37 @@ prefix_ senf::MACAddressParser senf::WLANPacket_DataFrameParser::destinationAddr { switch (dsBits()) { case 0 : - case 2 : return addr1(); - default: return addr3(); + case 2 : + return addr1(); + default: + return addr3(); } } prefix_ senf::MACAddressParser senf::WLANPacket_DataFrameParser::sourceAddress() const { - switch (dsBits()) - { + switch (dsBits()) { case 0 : - case 1 : return addr2(); + case 1 : + return addr2(); // TODO wds frames // case 3 : return addr4(); - default: return addr3(); + default: + return addr3(); } } prefix_ senf::MACAddressParser senf::WLANPacket_DataFrameParser::bssid() const { - switch (dsBits()) - { - case 0 : return addr3(); - case 1 : return addr1(); - default: return addr2(); + switch (dsBits()) { + case 0 : + return addr3(); + case 1 : + return addr1(); + default: + return addr2(); } } @@ -131,6 +137,7 @@ prefix_ void senf::WLANPacket_DataFrameType::dump(packet p, std::ostream &os) os << senf::fieldName("QOS data") << p->qosField() << "\n"; } +///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_