mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +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
|
@ -141,7 +141,7 @@ int sctp_rcv(struct sk_buff *skb)
|
|||
sh = (struct sctphdr *) skb->h.raw;
|
||||
|
||||
/* Pull up the IP and SCTP headers. */
|
||||
__skb_pull(skb, skb->h.raw - skb->data);
|
||||
__skb_pull(skb, skb_transport_offset(skb));
|
||||
if (skb->len < sizeof(struct sctphdr))
|
||||
goto discard_it;
|
||||
if ((skb->ip_summed != CHECKSUM_UNNECESSARY) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue