Detect method now checks WBID.
FossilOrigin-Name: 0897b9a86e6e40ea04acc14fcfb41d020be1cc4c06683d73123be821cdee47cc
This commit is contained in:
parent
e1b684a7da
commit
298aa59372
@ -97,10 +97,10 @@
|
|||||||
|
|
||||||
|
|
||||||
/* wireless binding ids */
|
/* wireless binding ids */
|
||||||
#define CWTH_WBID_RESERVED1 0
|
#define CW_WBID_RESERVED1 0
|
||||||
#define CWTH_WBID_IEEE80211 1
|
#define CW_WBID_IEEE80211 1
|
||||||
#define CWTH_WBID_RESERVED2 2
|
#define CW_WBID_RESERVED2 2
|
||||||
#define CWTH_WBID_EPCGLOBAL 3
|
#define CW_WBID_EPCGLOBAL 3
|
||||||
|
|
||||||
|
|
||||||
#define CAPWAP_PACKET_PREAMBLE (CAPWAP_VERSION<<4)
|
#define CAPWAP_PACKET_PREAMBLE (CAPWAP_VERSION<<4)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "cw/dbg.h"
|
#include "cw/dbg.h"
|
||||||
|
|
||||||
#include "cw/action.h"
|
#include "cw/action.h"
|
||||||
|
#include "cw/capwap.h"
|
||||||
|
|
||||||
#include "mod_capwap80211.h"
|
#include "mod_capwap80211.h"
|
||||||
|
|
||||||
@ -29,7 +30,10 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
|
|||||||
if (mode != MOD_DETECT_BINDINGS)
|
if (mode != MOD_DETECT_BINDINGS)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cw_log(LOG_INFO, "Detecting 80211");
|
int wbid = cw_get_hdr_wbid(rawmsg);
|
||||||
|
if (wbid != CW_WBID_IEEE80211 )
|
||||||
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user