2 * Copyright (C) 2007-2009 B.A.T.M.A.N. contributors:
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 void set_main_if_addr(uint8_t *addr);
23 int main_if_was_up(void);
24 void interface_setup(struct net_device *dev);
25 int interface_open(struct net_device *dev);
26 int interface_release(struct net_device *dev);
27 struct net_device_stats *interface_stats(struct net_device *dev);
28 int interface_set_mac_addr(struct net_device *dev, void *addr);
29 int interface_change_mtu(struct net_device *dev, int new_mtu);
30 int interface_tx(struct sk_buff *skb, struct net_device *dev);
31 void interface_rx(struct sk_buff *skb, int hdr_size);
32 int my_skb_push(struct sk_buff *skb, unsigned int len);
34 extern unsigned char mainIfAddr[];