Lines Matching defs:iph
119 struct iphdr *iph = header;
121 iph->ihl = 5;
122 iph->version = 4;
123 iph->ttl = 8;
124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len);
125 iph->id = htons(1337);
126 iph->protocol = IPPROTO_UDP;
127 iph->saddr = htonl((172 << 24) | (17 << 16) | 2);
128 iph->daddr = htonl((172 << 24) | (17 << 16) | 1);
129 iph->check = build_ip_csum((void *) iph, iph->ihl << 1, 0);
131 return iph->ihl << 2;