Lines Matching refs:iph
152 struct iphdr *iph, _iph; in _dissect() local
154 iph = bpf_flow_dissect_get_header(skb, sizeof(*iph), &_iph); in _dissect()
155 if (iph && iph->ihl == 5 && in _dissect()
156 iph->saddr == bpf_htonl(FLOW_CONTINUE_SADDR)) { in _dissect()
280 struct iphdr *iph, _iph; in PROG() local
283 iph = bpf_flow_dissect_get_header(skb, sizeof(*iph), &_iph); in PROG()
284 if (!iph) in PROG()
288 if (iph->ihl < 5) in PROG()
292 keys->ipv4_src = iph->saddr; in PROG()
293 keys->ipv4_dst = iph->daddr; in PROG()
294 keys->ip_proto = iph->protocol; in PROG()
296 keys->thoff += iph->ihl << 2; in PROG()
300 if (iph->frag_off & bpf_htons(IP_MF | IP_OFFSET)) { in PROG()
302 if (iph->frag_off & bpf_htons(IP_OFFSET)) { in PROG()
321 return parse_ip_proto(skb, iph->protocol); in PROG()