diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-04-11 00:21:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:26:20 -0400 |
commit | b0e380b1d8a8e0aca215df97702f99815f05c094 (patch) | |
tree | 95f402ca155f5211150178811669ebf0a88e8e00 /net/core/skbuff.c | |
parent | cfe1fc7759fdacb0c650b575daed1692bf3eaece (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/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f38af6c01b12..1e71764be4a4 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -396,9 +396,9 @@ struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t gfp_mask) | |||
396 | n->sk = NULL; | 396 | n->sk = NULL; |
397 | C(tstamp); | 397 | C(tstamp); |
398 | C(dev); | 398 | C(dev); |
399 | C(h); | 399 | C(transport_header); |
400 | C(nh); | 400 | C(network_header); |
401 | C(mac); | 401 | C(mac_header); |
402 | C(dst); | 402 | C(dst); |
403 | dst_clone(skb->dst); | 403 | dst_clone(skb->dst); |
404 | C(sp); | 404 | C(sp); |
@@ -461,9 +461,9 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) | |||
461 | #ifdef CONFIG_INET | 461 | #ifdef CONFIG_INET |
462 | new->sp = secpath_get(old->sp); | 462 | new->sp = secpath_get(old->sp); |
463 | #endif | 463 | #endif |
464 | new->h.raw = old->h.raw + offset; | 464 | new->transport_header = old->transport_header + offset; |
465 | new->nh.raw = old->nh.raw + offset; | 465 | new->network_header = old->network_header + offset; |
466 | new->mac.raw = old->mac.raw + offset; | 466 | new->mac_header = old->mac_header + offset; |
467 | memcpy(new->cb, old->cb, sizeof(old->cb)); | 467 | memcpy(new->cb, old->cb, sizeof(old->cb)); |
468 | new->local_df = old->local_df; | 468 | new->local_df = old->local_df; |
469 | new->fclone = SKB_FCLONE_UNAVAILABLE; | 469 | new->fclone = SKB_FCLONE_UNAVAILABLE; |
@@ -639,9 +639,9 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, | |||
639 | skb->end = data + size; | 639 | skb->end = data + size; |
640 | skb->data += off; | 640 | skb->data += off; |
641 | skb->tail += off; | 641 | skb->tail += off; |
642 | skb->mac.raw += off; | 642 | skb->transport_header += off; |
643 | skb->h.raw += off; | 643 | skb->network_header += off; |
644 | skb->nh.raw += off; | 644 | skb->mac_header += off; |
645 | skb->cloned = 0; | 645 | skb->cloned = 0; |
646 | skb->nohdr = 0; | 646 | skb->nohdr = 0; |
647 | atomic_set(&skb_shinfo(skb)->dataref, 1); | 647 | atomic_set(&skb_shinfo(skb)->dataref, 1); |
@@ -1906,7 +1906,8 @@ struct sk_buff *skb_segment(struct sk_buff *skb, int features) | |||
1906 | skb_reserve(nskb, headroom); | 1906 | skb_reserve(nskb, headroom); |
1907 | skb_reset_mac_header(nskb); | 1907 | skb_reset_mac_header(nskb); |
1908 | skb_set_network_header(nskb, skb->mac_len); | 1908 | skb_set_network_header(nskb, skb->mac_len); |
1909 | nskb->h.raw = nskb->nh.raw + skb_network_header_len(skb); | 1909 | nskb->transport_header = (nskb->network_header + |
1910 | skb_network_header_len(skb)); | ||
1910 | memcpy(skb_put(nskb, doffset), skb->data, doffset); | 1911 | memcpy(skb_put(nskb, doffset), skb->data, doffset); |
1911 | 1912 | ||
1912 | if (!sg) { | 1913 | if (!sg) { |