Lines Matching refs:ip4h
37 struct iphdr *ip4h = (struct iphdr *)skb->data;
38 void *txporthdr = skb->data + ip4h->ihl * 4;
46 if (ip_fast_csum(ip4h, ip4h->ihl)) {
52 if (ip_is_fragment(ip4h)) {
58 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr);
65 if (!*csum_field && ip4h->protocol == IPPROTO_UDP) {
93 pseudo_csum = csum_tcpudp_magic(ip4h->saddr, ip4h->daddr,
94 ntohs(ip4h->tot_len) - ip4h->ihl * 4,
95 ip4h->protocol, 0);
167 static void rmnet_map_complement_ipv4_txporthdr_csum_field(struct iphdr *ip4h)
172 txphdr = (void *)ip4h + ip4h->ihl * 4;
174 if (ip4h->protocol == IPPROTO_TCP || ip4h->protocol == IPPROTO_UDP) {
175 csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr);