radiotap_iter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 #ifndef __RADIOTAP_ITER_H
15 #define __RADIOTAP_ITER_H
16 
17 #include <stdint.h>
18 #include "radiotap.h"
19 
20 /* Radiotap header iteration
21  * implemented in radiotap.c
22  */
23 
25  uint8_t field;
26  uint8_t align:4, size:4;
27 };
28 
30  uint8_t align:4, size:4;
31 };
32 
35  int n_bits;
36  uint32_t oui;
37  uint8_t subns;
38 };
39 
42  int n_ns;
43 };
44 
81 
82  unsigned char *_arg, *_next_ns_data;
83  uint32_t *_next_bitmap;
84 
85  unsigned char *this_arg;
86  const struct radiotap_override *overrides; /* Only for RADIOTAP_SUPPORT_OVERRIDES */
87  int n_overrides; /* Only for RADIOTAP_SUPPORT_OVERRIDES */
90 
92 
95  uint32_t _bitmap_shifter;
97 };
98 
101  struct ieee80211_radiotap_header *radiotap_header,
102  int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns);
103 
106 
107 #endif /* __RADIOTAP_ITER_H */
const struct radiotap_override * overrides
Definition: radiotap_iter.h:86
unsigned char * _next_ns_data
Definition: radiotap_iter.h:82
const struct ieee80211_radiotap_namespace * ns
Definition: radiotap_iter.h:41
const struct ieee80211_radiotap_namespace * current_namespace
Definition: radiotap_iter.h:80
raw_container::iterator iterator
Definition: PacketTypes.hh:69
int ieee80211_radiotap_iterator_init(struct ieee80211_radiotap_iterator *iterator, struct ieee80211_radiotap_header *radiotap_header, int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns)
Definition: radiotap.c:105
int ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator)
Definition: radiotap.c:246
const struct ieee80211_radiotap_vendor_namespaces * _vns
Definition: radiotap_iter.h:79
const struct radiotap_align_size * align_size
Definition: radiotap_iter.h:34
struct ieee80211_radiotap_header * _rtheader
Definition: radiotap_iter.h:78