1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 05:24:26 +01:00

The FCS-at-end flag was being ignored in RadioTap. Added beacon display example.

This commit is contained in:
Matias Fontanini
2012-10-15 23:53:36 -03:00
parent 87292a6039
commit a0f5d26987
4 changed files with 70 additions and 15 deletions

View File

@@ -189,7 +189,7 @@ namespace Tins {
T *find_pdu(PDUType type = T::pdu_flag) {
PDU *pdu = this;
while(pdu) {
if(pdu->pdu_type() == type)
if(pdu->matches_flag(type))
return static_cast<T*>(pdu);
pdu = pdu->inner_pdu();
}