Lines Matching refs:iph
310 struct iphdr *iph = ip_hdr(skb); in vnet_fullcsum_ipv4() local
315 if (iph->protocol != IPPROTO_TCP && in vnet_fullcsum_ipv4()
316 iph->protocol != IPPROTO_UDP) in vnet_fullcsum_ipv4()
321 if (iph->protocol == IPPROTO_TCP) { in vnet_fullcsum_ipv4()
326 ptcp->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in vnet_fullcsum_ipv4()
329 } else if (iph->protocol == IPPROTO_UDP) { in vnet_fullcsum_ipv4()
334 pudp->check = csum_tcpudp_magic(iph->saddr, iph->daddr, in vnet_fullcsum_ipv4()
421 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one() local
423 iph->check = 0; in vnet_rx_one()
424 ip_send_check(iph); in vnet_rx_one()
430 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one() local
431 int ihl = iph->ihl * 4; in vnet_rx_one()
1176 struct iphdr *iph = ip_hdr(nskb); in vnet_skb_shape() local
1178 if (iph->protocol == IPPROTO_TCP || in vnet_skb_shape()
1179 iph->protocol == IPPROTO_UDP) { in vnet_skb_shape()
1180 csum = csum_tcpudp_magic(iph->saddr, in vnet_skb_shape()
1181 iph->daddr, in vnet_skb_shape()
1183 iph->protocol, in vnet_skb_shape()