Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNoelChannel committed Dec 4, 2023
1 parent 68a6400 commit 4e89aaf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions net/ipv4/ip_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,8 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
if (skb->protocol == htons(ETH_P_IP))
df |= (inner_iph->frag_off&htons(IP_DF));

<<<<<<< HEAD
max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr)
+ rt->dst.header_len;
=======
max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr)
+ rt->dst.header_len;
>>>>>>> 0accb77476d (ip_tunnel: Fix a memory corruption in ip_tunnel_xmit)
if (max_headroom > dev->needed_headroom)
dev->needed_headroom = max_headroom;

Expand All @@ -682,10 +677,11 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
skb_dst_drop(skb);
skb_dst_set(skb, &rt->dst);

err = iptunnel_xmit(dev_net(dev), rt, skb,
err = iptunnel_xmit(rt, skb,
fl4.saddr, fl4.daddr, protocol,
tos, ttl, df);
iptunnel_xmit_stats(err, &dev->stats, dev->tstats);

iptunnel_xmit_stats(err);

/* Push down and install the IP header. */
skb_push(skb, sizeof(struct iphdr));
Expand Down

0 comments on commit 4e89aaf

Please sign in to comment.