Classes | |
struct | item |
Prism header item. More... | |
struct | header |
Prism header format. More... | |
Functions | |
bool | eq_80211 (const header *lhs, size_t lhs_caplen, const header *rhs, size_t rhs_caplen) |
bool | eq_time_and_80211 (const header *lhs, size_t lhs_caplen, bool lhs_swapped, const header *rhs, size_t rhs_caplen, bool rhs_swapped, unsigned precision=phy::eq_time_default_precision, bool check_hosttime=false) |
bool prism::eq_80211 | ( | const header * | lhs, | |
size_t | lhs_caplen, | |||
const header * | rhs, | |||
size_t | rhs_caplen | |||
) | [inline] |
Compare IEEE 802.11 bytes from Prism headers.
Return whether two IEEE 802.11 frames embedded inside Prism headers are equals. This function does not compare the Prism headers.
In case there is not enough bytes to decide whether frames are equal (caplen < sizeof prism::header), consider they are not. This is a conservative approach: when merging two traces, this will lead to both frames having their entry in the merged trace.
bool prism::eq_time_and_80211 | ( | const header * | lhs, | |
size_t | lhs_caplen, | |||
bool | lhs_swapped, | |||
const header * | rhs, | |||
size_t | rhs_caplen, | |||
bool | rhs_swapped, | |||
unsigned | precision = phy::eq_time_default_precision , |
|||
bool | check_hosttime = false | |||
) | [inline] |
Compare IEEE 802.11 bytes from Prism headers, but also check MAC time and host time.
Return whether two IEEE 802.11 frames embedded inside Prism headers are equals. Also compare the MAC time fields of Prism headers, and the host time fields if check_hosttime
is true. When the time difference between each header's field is less than precision
, then consider the field equals.
In case there is not enough bytes to decide whether frames are equal (caplen < sizeof prism::header), consider they are not. This is a conservative approach: when merging two traces, this will lead to both frames having their entry in the merged trace.