Lines Matching defs:ip
38 #include <netinet/ip.h>
145 struct iphdr *ip = pay + sizeof(*eth);
156 for (i = 0; i < sizeof(*ip); ++i)
159 ip->ihl = 5;
160 ip->version = 4;
161 ip->protocol = 0x11;
162 ip->frag_off = 0;
163 ip->ttl = 64;
164 ip->tot_len = htons((uint16_t) *len - sizeof(*eth));
166 ip->saddr = htonl(INADDR_LOOPBACK);
167 ip->daddr = htonl(INADDR_LOOPBACK);
169 memset(pay + sizeof(*eth) + sizeof(*ip),