GNU Radio's IEEE802_11 Package
ether_encap_impl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013 Bastian Bloessl <bloessl@ccs-labs.org>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#ifndef INCLUDED_IEEE802_11_ETHER_ENCAP_IMPL_H
18#define INCLUDED_IEEE802_11_ETHER_ENCAP_IMPL_H
19
21
22namespace gr {
23namespace ieee802_11 {
24
25#pragma pack(push, 1)
27 uint8_t dest[6];
28 uint8_t src[6];
29 uint16_t type;
30};
31#pragma pack(pop)
32
34{
35
36public:
37 ether_encap_impl(bool debug);
38
39private:
40 void from_tap(pmt::pmt_t msg);
41 void from_wifi(pmt::pmt_t msg);
42
43 bool d_debug;
44 uint16_t d_last_seq;
45};
46
47} // namespace ieee802_11
48} // namespace gr
49
50#endif /* INCLUDED_IEEE802_11_ETHER_ENCAP_IMPL_H */
Definition ether_encap.h:27
Definition chunks_to_symbols.h:24
Definition chunks_to_symbols.h:23
Definition ether_encap_impl.h:26
uint8_t src[6]
Definition ether_encap_impl.h:28
uint8_t dest[6]
Definition ether_encap_impl.h:27
uint16_t type
Definition ether_encap_impl.h:29