diff options
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r-- | net/batman-adv/send.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index c7f702376535..4425af9dad40 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include "gateway_common.h" | 28 | #include "gateway_common.h" |
29 | #include "originator.h" | 29 | #include "originator.h" |
30 | 30 | ||
31 | #include <linux/if_ether.h> | ||
32 | |||
31 | static void batadv_send_outstanding_bcast_packet(struct work_struct *work); | 33 | static void batadv_send_outstanding_bcast_packet(struct work_struct *work); |
32 | 34 | ||
33 | /* send out an already prepared packet to the given address via the | 35 | /* send out an already prepared packet to the given address via the |
@@ -60,11 +62,11 @@ int batadv_send_skb_packet(struct sk_buff *skb, | |||
60 | ethhdr = (struct ethhdr *)skb_mac_header(skb); | 62 | ethhdr = (struct ethhdr *)skb_mac_header(skb); |
61 | memcpy(ethhdr->h_source, hard_iface->net_dev->dev_addr, ETH_ALEN); | 63 | memcpy(ethhdr->h_source, hard_iface->net_dev->dev_addr, ETH_ALEN); |
62 | memcpy(ethhdr->h_dest, dst_addr, ETH_ALEN); | 64 | memcpy(ethhdr->h_dest, dst_addr, ETH_ALEN); |
63 | ethhdr->h_proto = __constant_htons(BATADV_ETH_P_BATMAN); | 65 | ethhdr->h_proto = __constant_htons(ETH_P_BATMAN); |
64 | 66 | ||
65 | skb_set_network_header(skb, ETH_HLEN); | 67 | skb_set_network_header(skb, ETH_HLEN); |
66 | skb->priority = TC_PRIO_CONTROL; | 68 | skb->priority = TC_PRIO_CONTROL; |
67 | skb->protocol = __constant_htons(BATADV_ETH_P_BATMAN); | 69 | skb->protocol = __constant_htons(ETH_P_BATMAN); |
68 | 70 | ||
69 | skb->dev = hard_iface->net_dev; | 71 | skb->dev = hard_iface->net_dev; |
70 | 72 | ||