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
20
#include <
ieee802_11/ether_encap.h
>
21
22
namespace
gr
{
23
namespace
ieee802_11
{
24
25
#pragma pack(push, 1)
26
struct
ethernet_header
{
27
uint8_t
dest
[6];
28
uint8_t
src
[6];
29
uint16_t
type
;
30
};
31
#pragma pack(pop)
32
33
class
ether_encap_impl
:
public
ether_encap
34
{
35
36
public
:
37
ether_encap_impl
(
bool
debug);
38
39
private
:
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 */
gr::ieee802_11::ether_encap_impl::ether_encap_impl
ether_encap_impl(bool debug)
gr::ieee802_11::ether_encap
Definition
ether_encap.h:27
ether_encap.h
gr::ieee802_11
Definition
chunks_to_symbols.h:24
gr
Definition
chunks_to_symbols.h:23
gr::ieee802_11::ethernet_header
Definition
ether_encap_impl.h:26
gr::ieee802_11::ethernet_header::src
uint8_t src[6]
Definition
ether_encap_impl.h:28
gr::ieee802_11::ethernet_header::dest
uint8_t dest[6]
Definition
ether_encap_impl.h:27
gr::ieee802_11::ethernet_header::type
uint16_t type
Definition
ether_encap_impl.h:29
lib
ether_encap_impl.h
Generated by
1.16.1