Home | History | Annotate | Download | only in frag

Lines Matching refs:target

85 create_ip_packet(in_addr_t target, int foff, size_t addlen)
115 ip->ip_dst.s_addr = target;
136 send_packet(int s, void *p, in_addr_t target)
144 addr.sin_addr.s_addr = target;
156 test_case_0(int sock, in_addr_t target)
165 p = create_ip_packet(target, 0 | IP_MF, 1480);
166 send_packet(sock, p, target);
168 p = create_ip_packet(target, 185, 1480);
169 send_packet(sock, p, target);
173 test_case_1(int sock, in_addr_t target)
184 p = create_ip_packet(target, 0 | IP_MF, 48);
185 send_packet(sock, p, target);
188 p = create_ip_packet(target, 6 - 1, 8);
189 send_packet(sock, p, target);
193 test_case_2(int sock, in_addr_t target)
203 p = create_ip_packet(target, 0 | IP_MF, 48);
206 send_packet(sock, p, target);
208 p = create_ip_packet(target, 6, 48);
209 send_packet(sock, p, target);
213 test_case_3(int sock, in_addr_t target)
222 p = create_ip_packet(target, 0 | IP_MF, 48);
223 send_packet(sock, p, target);
226 p = create_ip_packet(target, 6, 48 + 1);
227 send_packet(sock, p, target);
231 test_case_4(int sock, in_addr_t target)
240 p = create_ip_packet(target, 0 | IP_MF, 48);
241 send_packet(sock, p, target);
243 p = create_ip_packet(target, 6 | IP_MF, 96);
244 send_packet(sock, p, target);
246 p = create_ip_packet(target, 6, 48);
247 send_packet(sock, p, target);
251 test_case_5(int sock, in_addr_t target)
271 p = create_ip_packet(target, off | IP_MF, 1480);
272 send_packet(sock, p, target);
276 p = create_ip_packet(target, off, left + 8);
277 send_packet(sock, p, target);
281 test_case_6(int sock, in_addr_t target)
291 p = create_ip_packet(target, 0 | IP_MF, 48);
294 send_packet(sock, p, target);
304 in_addr_t target;
308 printf("%s: <target host>\n", argv[0]);
316 memcpy(&target, he->h_addr, sizeof(target));
320 test_case_0(sock, target);
321 test_case_1(sock, target);
322 test_case_2(sock, target);
323 test_case_3(sock, target);
324 test_case_4(sock, target);
325 test_case_5(sock, target);
326 test_case_6(sock, target);