Skip to content

Commit

Permalink
better BE LE router detection
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 3, 2023
1 parent 03009f0 commit c45d2be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -3469,13 +3469,13 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
zeiger->status = ST_BE;
zeigerakt->status = ST_BE;
}
else
{
zeiger->status = ST_NC;
zeigerakt->status = ST_NC;
}
}
}
else
{
zeiger->status = ST_NC;
zeigerakt->status = ST_NC;
}
}
}
for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++)
Expand Down Expand Up @@ -3858,9 +3858,9 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX +1; zeiger++)
eapolnccount++;
if(zeiger->nonce[31] != wpak->nonce[31]) zeiger->status |= ST_LE;
else if(zeiger->nonce[28] != wpak->nonce[28]) zeiger->status |= ST_BE;
else zeiger->status |= ST_NC;
}
}
else zeiger->status |= ST_NC;
}
qsort(messagelist, MESSAGELIST_MAX +1, MESSAGELIST_SIZE, sort_messagelist_by_timestamp);
return;
Expand Down

0 comments on commit c45d2be

Please sign in to comment.