mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 20:29:20 +00:00
[SK_BUFF]: Introduce skb_transport_offset()
For the quite common 'skb->h.raw - skb->data' sequence. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
badff6d01a
commit
ea2ae17d64
26 changed files with 64 additions and 64 deletions
|
@ -160,7 +160,7 @@ static inline int ip6_input_finish(struct sk_buff *skb)
|
|||
rcu_read_lock();
|
||||
resubmit:
|
||||
idev = ip6_dst_idev(skb->dst);
|
||||
if (!pskb_pull(skb, skb->h.raw - skb->data))
|
||||
if (!pskb_pull(skb, skb_transport_offset(skb)))
|
||||
goto discard;
|
||||
nhoff = IP6CB(skb)->nhoff;
|
||||
nexthdr = skb_network_header(skb)[nhoff];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue