Lines Matching defs:iph
479 const struct iphdr *iph,
491 param->replyopts.opt.opt.faddr : iph->saddr);
590 struct iphdr *iph;
617 iph = ip_hdr(skb_in);
619 if ((u8 *)iph < skb_in->head ||
620 (skb_network_header(skb_in) + sizeof(*iph)) >
640 if (iph->frag_off & htons(IP_OFFSET))
651 if (iph->protocol == IPPROTO_ICMP) {
656 (iph->ihl << 2) +
694 saddr = iph->daddr;
704 saddr = inet_select_addr(dev, iph->saddr,
711 tos = icmp_pointers[type].error ? (RT_TOS(iph->tos) |
713 iph->tos;
732 ipc.addr = iph->saddr;
736 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark,
818 const struct iphdr *iph = (const struct iphdr *)skb->data;
820 int protocol = iph->protocol;
825 if (!pskb_may_pull(skb, iph->ihl * 4 + 8)) {
855 const struct iphdr *iph;
872 iph = (const struct iphdr *)skb->data;
874 if (iph->ihl < 5) { /* Mangled header, drop. */
895 &iph->daddr);
900 if (!icmp_tag_validation(iph->protocol))
909 &iph->daddr);
946 inet_addr_type_dev_table(net, skb->dev, iph->daddr) == RTN_BROADCAST) {
950 &iph->daddr, skb->dev->name);
1353 struct iphdr *iph = (struct iphdr *)skb->data;
1354 int offset = iph->ihl<<2;