Lines Matching refs:icmph
190 struct icmphdr *icmph; in tcf_nat() local
192 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat()
195 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat()
197 if ((icmph->type != ICMP_DEST_UNREACH) && in tcf_nat()
198 (icmph->type != ICMP_TIME_EXCEEDED) && in tcf_nat()
199 (icmph->type != ICMP_PARAMETERPROB)) in tcf_nat()
202 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + sizeof(*iph) + in tcf_nat()
206 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat()
207 iph = (void *)(icmph + 1); in tcf_nat()
217 !skb_clone_writable(skb, ihl + sizeof(*icmph) + in tcf_nat()
222 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat()
223 iph = (void *)(icmph + 1); in tcf_nat()
234 inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr, in tcf_nat()