aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/ip_output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index d6478521128e..663cb2acb39e 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -442,7 +442,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
442int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) 442int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
443{ 443{
444 struct iphdr *iph; 444 struct iphdr *iph;
445 int raw = 0;
446 int ptr; 445 int ptr;
447 struct net_device *dev; 446 struct net_device *dev;
448 struct sk_buff *skb2; 447 struct sk_buff *skb2;
@@ -580,7 +579,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
580 579
581slow_path: 580slow_path:
582 left = skb->len - hlen; /* Space per frame */ 581 left = skb->len - hlen; /* Space per frame */
583 ptr = raw + hlen; /* Where to start from */ 582 ptr = hlen; /* Where to start from */
584 583
585 /* for bridged IP traffic encapsulated inside f.e. a vlan header, 584 /* for bridged IP traffic encapsulated inside f.e. a vlan header,
586 * we need to make room for the encapsulating header 585 * we need to make room for the encapsulating header