Lines Matching defs:iph
944 struct iphdr *iph;
966 pkt_size = sizeof(*eth) + sizeof(*iph) + 4 + igmp_hdr_size;
987 iph = ip_hdr(skb);
988 iph->tot_len = htons(pkt_size - sizeof(*eth));
990 iph->version = 4;
991 iph->ihl = 6;
992 iph->tos = 0xc0;
993 iph->id = 0;
994 iph->frag_off = htons(IP_DF);
995 iph->ttl = 1;
996 iph->protocol = IPPROTO_IGMP;
997 iph->saddr = br_opt_get(brmctx->br, BROPT_MULTICAST_QUERY_USE_IFADDR) ?
999 iph->daddr = ip_dst;
1000 ((u8 *)&iph[1])[0] = IPOPT_RA;
1001 ((u8 *)&iph[1])[1] = 4;
1002 ((u8 *)&iph[1])[2] = 0;
1003 ((u8 *)&iph[1])[3] = 0;
1004 ip_send_check(iph);
3428 const struct iphdr *iph = ip_hdr(skb);
3467 saddr.src.ip4 = iph->saddr;