Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
tap.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_TAP_H
27 #define __MOEP80211_MODULES_TAP_H
28 
29 #include <netinet/in.h>
30 
31 #include <moep/dev.h>
32 
33 
34 struct moep_frame_ops;
35 
36 
63 moep_dev_t moep_dev_tap_open(u8 *addr, const struct in_addr *ip, int prefixlen,
64  int mtu, struct moep_frame_ops *l2_ops);
65 
84 int moep_dev_tap_get_hwaddr(moep_dev_t dev, u8 *addr);
85 
102 
104 #endif /* __MOEP80211_MODULES_TAP_H */
struct moep_frame * moep_frame_t
a moep frame
Definition: frame.h:45
moep_frame_t moep_frame_tap_create(struct moep_frame_ops *l2_ops)
create a tap frame
moep_dev_t moep_dev_tap_open(u8 *addr, const struct in_addr *ip, int prefixlen, int mtu, struct moep_frame_ops *l2_ops)
open a tap device
int moep_dev_tap_get_hwaddr(moep_dev_t dev, u8 *addr)
get hardware address
frame header operations
Definition: module.h:57
struct moep_dev * moep_dev_t
a moep device
Definition: dev.h:46