diff options
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r-- | net/batman-adv/send.c | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index 3d64ed20c393..0a01992e65ab 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* Copyright (C) 2007-2014 B.A.T.M.A.N. contributors: | 1 | /* Copyright (C) 2007-2015 B.A.T.M.A.N. contributors: |
2 | * | 2 | * |
3 | * Marek Lindner, Simon Wunderlich | 3 | * Marek Lindner, Simon Wunderlich |
4 | * | 4 | * |
@@ -15,19 +15,37 @@ | |||
15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "send.h" | ||
18 | #include "main.h" | 19 | #include "main.h" |
20 | |||
21 | #include <linux/atomic.h> | ||
22 | #include <linux/byteorder/generic.h> | ||
23 | #include <linux/etherdevice.h> | ||
24 | #include <linux/fs.h> | ||
25 | #include <linux/if_ether.h> | ||
26 | #include <linux/if.h> | ||
27 | #include <linux/jiffies.h> | ||
28 | #include <linux/kernel.h> | ||
29 | #include <linux/list.h> | ||
30 | #include <linux/netdevice.h> | ||
31 | #include <linux/printk.h> | ||
32 | #include <linux/rculist.h> | ||
33 | #include <linux/rcupdate.h> | ||
34 | #include <linux/skbuff.h> | ||
35 | #include <linux/slab.h> | ||
36 | #include <linux/spinlock.h> | ||
37 | #include <linux/stddef.h> | ||
38 | #include <linux/workqueue.h> | ||
39 | |||
19 | #include "distributed-arp-table.h" | 40 | #include "distributed-arp-table.h" |
20 | #include "send.h" | 41 | #include "fragmentation.h" |
21 | #include "routing.h" | ||
22 | #include "translation-table.h" | ||
23 | #include "soft-interface.h" | ||
24 | #include "hard-interface.h" | ||
25 | #include "gateway_common.h" | ||
26 | #include "gateway_client.h" | 42 | #include "gateway_client.h" |
27 | #include "originator.h" | 43 | #include "hard-interface.h" |
28 | #include "network-coding.h" | 44 | #include "network-coding.h" |
29 | #include "fragmentation.h" | 45 | #include "originator.h" |
30 | #include "multicast.h" | 46 | #include "routing.h" |
47 | #include "soft-interface.h" | ||
48 | #include "translation-table.h" | ||
31 | 49 | ||
32 | static void batadv_send_outstanding_bcast_packet(struct work_struct *work); | 50 | static void batadv_send_outstanding_bcast_packet(struct work_struct *work); |
33 | 51 | ||
@@ -255,8 +273,8 @@ int batadv_send_skb_unicast(struct batadv_priv *bat_priv, | |||
255 | struct batadv_orig_node *orig_node, | 273 | struct batadv_orig_node *orig_node, |
256 | unsigned short vid) | 274 | unsigned short vid) |
257 | { | 275 | { |
258 | struct ethhdr *ethhdr; | ||
259 | struct batadv_unicast_packet *unicast_packet; | 276 | struct batadv_unicast_packet *unicast_packet; |
277 | struct ethhdr *ethhdr; | ||
260 | int ret = NET_XMIT_DROP; | 278 | int ret = NET_XMIT_DROP; |
261 | 279 | ||
262 | if (!orig_node) | 280 | if (!orig_node) |