Lines Matching defs:iph
703 struct iphdr *iph;
725 pkt_size = sizeof(*eth) + sizeof(*iph) + 4 + igmp_hdr_size;
745 iph = ip_hdr(skb);
746 iph->tot_len = htons(pkt_size - sizeof(*eth));
748 iph->version = 4;
749 iph->ihl = 6;
750 iph->tos = 0xc0;
751 iph->id = 0;
752 iph->frag_off = htons(IP_DF);
753 iph->ttl = 1;
754 iph->protocol = IPPROTO_IGMP;
755 iph->saddr = br_opt_get(br, BROPT_MULTICAST_QUERY_USE_IFADDR) ?
757 iph->daddr = ip_dst;
758 ((u8 *)&iph[1])[0] = IPOPT_RA;
759 ((u8 *)&iph[1])[1] = 4;
760 ((u8 *)&iph[1])[2] = 0;
761 ((u8 *)&iph[1])[3] = 0;
762 ip_send_check(iph);
2641 const struct iphdr *iph = ip_hdr(skb);
2680 saddr.src.ip4 = iph->saddr;