[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e023dd6437
commit
eddc9ec53b
@@ -1156,9 +1156,9 @@ again:
|
||||
extsts = 0;
|
||||
if (skb->ip_summed == CHECKSUM_PARTIAL) {
|
||||
extsts |= EXTSTS_IPPKT;
|
||||
if (IPPROTO_TCP == skb->nh.iph->protocol)
|
||||
if (IPPROTO_TCP == ip_hdr(skb)->protocol)
|
||||
extsts |= EXTSTS_TCPPKT;
|
||||
else if (IPPROTO_UDP == skb->nh.iph->protocol)
|
||||
else if (IPPROTO_UDP == ip_hdr(skb)->protocol)
|
||||
extsts |= EXTSTS_UDPPKT;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user