Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
eth.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_ETH_H
27 #define __MOEP80211_MODULES_ETH_H
28 
29 #include <netinet/in.h>
30 
31 #include <moep/dev.h>
32 
33 
34 struct moep_frame_ops;
35 
36 
64 moep_dev_t moep_dev_eth_open(const char *devname, u8 *addr,
65  const struct in_addr *ip, int prefixlen, int mtu,
66  struct moep_frame_ops *l2_ops);
67 
86 int moep_dev_eth_get_hwaddr(moep_dev_t dev, u8 *addr);
87 
104 
106 #endif /* __MOEP80211_MODULES_ETH_H */
struct moep_frame * moep_frame_t
a moep frame
Definition: frame.h:45
moep_dev_t moep_dev_eth_open(const char *devname, u8 *addr, const struct in_addr *ip, int prefixlen, int mtu, struct moep_frame_ops *l2_ops)
open an eth device
int moep_dev_eth_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
moep_frame_t moep_frame_eth_create(struct moep_frame_ops *l2_ops)
create an eth frame