aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 357894259f8f..50d0b301380e 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -597,7 +597,7 @@ static int ipmr_cache_report(struct sk_buff *pkt, vifi_t vifi, int assert)
597 msg->im_msgtype = assert; 597 msg->im_msgtype = assert;
598 igmp->code = 0; 598 igmp->code = 0;
599 ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */ 599 ip_hdr(skb)->tot_len = htons(skb->len); /* Fix the length */
600 skb->h.raw = skb->nh.raw; 600 skb->transport_header = skb->network_header;
601 } 601 }
602 602
603 if (mroute_socket == NULL) { 603 if (mroute_socket == NULL) {
@@ -1102,7 +1102,7 @@ static void ip_encap(struct sk_buff *skb, __be32 saddr, __be32 daddr)
1102 struct iphdr *old_iph = ip_hdr(skb); 1102 struct iphdr *old_iph = ip_hdr(skb);
1103 1103
1104 skb_push(skb, sizeof(struct iphdr)); 1104 skb_push(skb, sizeof(struct iphdr));
1105 skb->h.raw = skb->nh.raw; 1105 skb->transport_header = skb->network_header;
1106 skb_reset_network_header(skb); 1106 skb_reset_network_header(skb);
1107 iph = ip_hdr(skb); 1107 iph = ip_hdr(skb);
1108 1108
@@ -1461,7 +1461,7 @@ int pim_rcv_v1(struct sk_buff * skb)
1461 if (reg_dev == NULL) 1461 if (reg_dev == NULL)
1462 goto drop; 1462 goto drop;
1463 1463
1464 skb->mac.raw = skb->nh.raw; 1464 skb->mac_header = skb->network_header;
1465 skb_pull(skb, (u8*)encap - skb->data); 1465 skb_pull(skb, (u8*)encap - skb->data);
1466 skb_reset_network_header(skb); 1466 skb_reset_network_header(skb);
1467 skb->dev = reg_dev; 1467 skb->dev = reg_dev;
@@ -1517,7 +1517,7 @@ static int pim_rcv(struct sk_buff * skb)
1517 if (reg_dev == NULL) 1517 if (reg_dev == NULL)
1518 goto drop; 1518 goto drop;
1519 1519
1520 skb->mac.raw = skb->nh.raw; 1520 skb->mac_header = skb->network_header;
1521 skb_pull(skb, (u8*)encap - skb->data); 1521 skb_pull(skb, (u8*)encap - skb->data);
1522 skb_reset_network_header(skb); 1522 skb_reset_network_header(skb);
1523 skb->dev = reg_dev; 1523 skb->dev = reg_dev;