[lib] Move listener code to owlps-listener.h (bis)
Move the last piece of listener-specific code from owlps.h to owlps-listener.h.
This commit is contained in:
parent
d566187f42
commit
1d6016a3ce
|
@ -230,16 +230,6 @@ void owl_close_fd(void *const fd) ;
|
|||
void owl_close_file(void *const file) ;
|
||||
|
||||
|
||||
/* Macros */
|
||||
|
||||
/*
|
||||
* Test if a IEEE 802.11 frame is a retry.
|
||||
* Input: IEEE 802.11 header flags.
|
||||
* Returns 0 if the Retry bit is absent, a positive value if present.
|
||||
*/
|
||||
#define IS_RETRY(IEEE80211_FLAGS) ((IEEE80211_FLAGS) & 0x08)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // __cplusplus
|
||||
|
|
|
@ -94,6 +94,13 @@ enum {MODE_ACTIVE = 'a', MODE_PASSIVE = 'p', MODE_MIXED = 'm'} ;
|
|||
#define IS_FRAME_FROM_STA(FC2) \
|
||||
(((FC2) & FRAME_FROM_STA_MASK) != FRAME_FROM_STA_MASK)
|
||||
|
||||
/*
|
||||
* Test if a IEEE 802.11 frame is a retry.
|
||||
* Input: IEEE 802.11 header flags.
|
||||
* Returns 0 if the Retry bit is absent, a positive value if present.
|
||||
*/
|
||||
#define IS_RETRY(IEEE80211_FLAGS) ((IEEE80211_FLAGS) & 0x08)
|
||||
|
||||
|
||||
/* Positions of the radiotap header fixed fields (in bytes) */
|
||||
#define RTAP_P_HREVISION 0 // Header revision
|
||||
|
|
Loading…
Reference in New Issue