aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-11 00:21:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:26:20 -0400
commitb0e380b1d8a8e0aca215df97702f99815f05c094 (patch)
tree95f402ca155f5211150178811669ebf0a88e8e00 /net/ipv4/ipmr.c
parentcfe1fc7759fdacb0c650b575daed1692bf3eaece (diff)
[SK_BUFF]: unions of just one member don't get anything done, kill them
Renaming skb->h to skb->transport_header, skb->nh to skb->network_header and skb->mac to skb->mac_header, to match the names of the associated helpers (skb[_[re]set]_{transport,network,mac}_header). Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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;