Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
ieee8023.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013, 2014 Maurice Leclaire <leclaire@in.tum.de>
3  * Stephan M. Guenther <moepi@moepi.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * See COPYING for more details.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
26 #ifndef __MOEP80211_MODULES_IEEE8023_H
27 #define __MOEP80211_MODULES_IEEE8023_H
28 
29 #include <netinet/in.h>
30 #include <netinet/if_ether.h>
31 
32 #include <moep/dev.h>
33 #include <moep/frame.h>
34 
35 #include <moep/modules/eth.h>
36 #include <moep/modules/tap.h>
37 #include <moep/modules/unix.h>
38 
39 
66 moep_dev_t moep_dev_ieee8023_open(const char *devname, u8 *addr,
67  const struct in_addr *ip, int prefixlen,
68  int mtu);
69 
96 moep_dev_t moep_dev_ieee8023_tap_open(u8 *addr, const struct in_addr *ip,
97  int prefixlen, int mtu);
98 
122 moep_dev_t moep_dev_ieee8023_unix_open(const char *devname, int mtu);
123 
138 
153 
168 
186 struct ether_header *moep_frame_ieee8023_hdr(moep_frame_t frame);
187 
189 #endif /* __MOEP80211_MODULES_IEEE8023_H */
struct ether_header * moep_frame_ieee8023_hdr(moep_frame_t frame)
ieee8023 header
struct moep_frame * moep_frame_t
a moep frame
Definition: frame.h:45
struct moep_dev * moep_dev_t
a moep device
Definition: dev.h:46
moep_frame_t moep_frame_ieee8023_create(void)
create an ieee8023 frame
moep_frame_t moep_frame_ieee8023_unix_create(void)
create an ieee8023 unix frame
moep_dev_t moep_dev_ieee8023_open(const char *devname, u8 *addr, const struct in_addr *ip, int prefixlen, int mtu)
open an ieee8023 device
moep_dev_t moep_dev_ieee8023_tap_open(u8 *addr, const struct in_addr *ip, int prefixlen, int mtu)
open an ieee8023 tap device
moep_frame_t moep_frame_ieee8023_tap_create(void)
create an ieee8023 tap frame
moep_dev_t moep_dev_ieee8023_unix_open(const char *devname, int mtu)
open an ieee8023 unix device