aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/network-coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/network-coding.c')
-rw-r--r--net/batman-adv/network-coding.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index 22cd51fea730..a487d46e0aec 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -1359,18 +1359,17 @@ static bool batadv_nc_skb_add_to_path(struct sk_buff *skb,
1359 * buffer 1359 * buffer
1360 * @skb: data skb to forward 1360 * @skb: data skb to forward
1361 * @neigh_node: next hop to forward packet to 1361 * @neigh_node: next hop to forward packet to
1362 * @ethhdr: pointer to the ethernet header inside the skb
1363 * 1362 *
1364 * Returns true if the skb was consumed (encoded packet sent) or false otherwise 1363 * Returns true if the skb was consumed (encoded packet sent) or false otherwise
1365 */ 1364 */
1366bool batadv_nc_skb_forward(struct sk_buff *skb, 1365bool batadv_nc_skb_forward(struct sk_buff *skb,
1367 struct batadv_neigh_node *neigh_node, 1366 struct batadv_neigh_node *neigh_node)
1368 struct ethhdr *ethhdr)
1369{ 1367{
1370 const struct net_device *netdev = neigh_node->if_incoming->soft_iface; 1368 const struct net_device *netdev = neigh_node->if_incoming->soft_iface;
1371 struct batadv_priv *bat_priv = netdev_priv(netdev); 1369 struct batadv_priv *bat_priv = netdev_priv(netdev);
1372 struct batadv_unicast_packet *packet; 1370 struct batadv_unicast_packet *packet;
1373 struct batadv_nc_path *nc_path; 1371 struct batadv_nc_path *nc_path;
1372 struct ethhdr *ethhdr = eth_hdr(skb);
1374 __be32 packet_id; 1373 __be32 packet_id;
1375 u8 *payload; 1374 u8 *payload;
1376 1375