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