aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/pktgen.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/core/pktgen.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/core/pktgen.c')
-rw-r--r--net/core/pktgen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index ae8cf9a285fd..9da8357addcd 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2358,7 +2358,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
2358 } 2358 }
2359 2359
2360 skb_set_network_header(skb, skb->tail - skb->data); 2360 skb_set_network_header(skb, skb->tail - skb->data);
2361 skb->h.raw = skb->nh.raw + sizeof(struct iphdr); 2361 skb->transport_header = skb->network_header + sizeof(struct iphdr);
2362 skb_put(skb, sizeof(struct iphdr) + sizeof(struct udphdr)); 2362 skb_put(skb, sizeof(struct iphdr) + sizeof(struct udphdr));
2363 2363
2364 iph = ip_hdr(skb); 2364 iph = ip_hdr(skb);
@@ -2391,9 +2391,9 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
2391 iph->check = 0; 2391 iph->check = 0;
2392 iph->check = ip_fast_csum((void *)iph, iph->ihl); 2392 iph->check = ip_fast_csum((void *)iph, iph->ihl);
2393 skb->protocol = protocol; 2393 skb->protocol = protocol;
2394 skb->mac.raw = (skb->nh.raw - ETH_HLEN - 2394 skb->mac_header = (skb->network_header - ETH_HLEN -
2395 pkt_dev->nr_labels * sizeof(u32) - 2395 pkt_dev->nr_labels * sizeof(u32) -
2396 VLAN_TAG_SIZE(pkt_dev) - SVLAN_TAG_SIZE(pkt_dev)); 2396 VLAN_TAG_SIZE(pkt_dev) - SVLAN_TAG_SIZE(pkt_dev));
2397 skb->dev = odev; 2397 skb->dev = odev;
2398 skb->pkt_type = PACKET_HOST; 2398 skb->pkt_type = PACKET_HOST;
2399 2399
@@ -2697,7 +2697,7 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
2697 } 2697 }
2698 2698
2699 skb_set_network_header(skb, skb->tail - skb->data); 2699 skb_set_network_header(skb, skb->tail - skb->data);
2700 skb->h.raw = skb->nh.raw + sizeof(struct ipv6hdr); 2700 skb->transport_header = skb->network_header + sizeof(struct ipv6hdr);
2701 skb_put(skb, sizeof(struct ipv6hdr) + sizeof(struct udphdr)); 2701 skb_put(skb, sizeof(struct ipv6hdr) + sizeof(struct udphdr));
2702 2702
2703 iph = ipv6_hdr(skb); 2703 iph = ipv6_hdr(skb);
@@ -2738,9 +2738,9 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
2738 ipv6_addr_copy(&iph->daddr, &pkt_dev->cur_in6_daddr); 2738 ipv6_addr_copy(&iph->daddr, &pkt_dev->cur_in6_daddr);
2739 ipv6_addr_copy(&iph->saddr, &pkt_dev->cur_in6_saddr); 2739 ipv6_addr_copy(&iph->saddr, &pkt_dev->cur_in6_saddr);
2740 2740
2741 skb->mac.raw = (skb->nh.raw - ETH_HLEN - 2741 skb->mac_header = (skb->network_header - ETH_HLEN -
2742 pkt_dev->nr_labels * sizeof(u32) - 2742 pkt_dev->nr_labels * sizeof(u32) -
2743 VLAN_TAG_SIZE(pkt_dev) - SVLAN_TAG_SIZE(pkt_dev)); 2743 VLAN_TAG_SIZE(pkt_dev) - SVLAN_TAG_SIZE(pkt_dev));
2744 skb->protocol = protocol; 2744 skb->protocol = protocol;
2745 skb->dev = odev; 2745 skb->dev = odev;
2746 skb->pkt_type = PACKET_HOST; 2746 skb->pkt_type = PACKET_HOST;