Lines Matching refs:iph
308 struct iphdr *iph = ip_hdr(skb); in vnet_fullcsum_ipv4() local
313 if (iph->protocol != IPPROTO_TCP && in vnet_fullcsum_ipv4()
314 iph->protocol != IPPROTO_UDP) in vnet_fullcsum_ipv4()
319 if (iph->protocol == IPPROTO_TCP) { in vnet_fullcsum_ipv4()
324 ptcp->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in vnet_fullcsum_ipv4()
327 } else if (iph->protocol == IPPROTO_UDP) { in vnet_fullcsum_ipv4()
332 pudp->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in vnet_fullcsum_ipv4()
419 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one() local
421 iph->check = 0; in vnet_rx_one()
422 ip_send_check(iph); in vnet_rx_one()
428 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one() local
429 int ihl = iph->ihl * 4; in vnet_rx_one()
1174 struct iphdr *iph = ip_hdr(nskb); in vnet_skb_shape() local
1176 if (iph->protocol == IPPROTO_TCP || in vnet_skb_shape()
1177 iph->protocol == IPPROTO_UDP) { in vnet_skb_shape()
1178 csum = csum_tcpudp_magic(iph->saddr, in vnet_skb_shape()
1179 iph->daddr, in vnet_skb_shape()
1181 iph->protocol, in vnet_skb_shape()