Compare commits
No commits in common. "ca1b59e4c6b13cc2181293abd885d9d70f615635" and "b10a0de9e67d3c51618117883cc077a8b62684df" have entirely different histories.
ca1b59e4c6
...
b10a0de9e6
@ -8,7 +8,6 @@ struct Packet {
|
|||||||
|
|
||||||
std::string srcMac;
|
std::string srcMac;
|
||||||
std::string dstMac;
|
std::string dstMac;
|
||||||
std::string bssid;
|
|
||||||
|
|
||||||
unsigned int payloadSize;
|
unsigned int payloadSize;
|
||||||
|
|
||||||
|
@ -54,15 +54,7 @@ void textPacketHandler(std::vector<std::string> textPacket){
|
|||||||
|
|
||||||
int raIndex = findContains(headerData, "RA:", 1);
|
int raIndex = findContains(headerData, "RA:", 1);
|
||||||
std::string rAddr = (raIndex != -1) ? headerData[raIndex].substr("RA:"s.length()) : "";
|
std::string rAddr = (raIndex != -1) ? headerData[raIndex].substr("RA:"s.length()) : "";
|
||||||
|
|
||||||
// Depending of when which address-fields are actually set, choose which ones to use
|
|
||||||
if(sAddr == "" && tAddr != "") sAddr = tAddr;
|
|
||||||
if(dAddr == "" && rAddr != "") dAddr = rAddr;
|
|
||||||
|
|
||||||
// Set addresses to packet
|
|
||||||
packet.srcMac = sAddr;
|
|
||||||
packet.dstMac = dAddr;
|
|
||||||
packet.bssid = bssidAddr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* EE781A91_6D07_47AC_B3C4_F99E29F3731F */
|
#endif /* EE781A91_6D07_47AC_B3C4_F99E29F3731F */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user