1/* 2 * ipresend.c (C) 1995-1998 Darren Reed 3 * 4 * This was written to test what size TCP fragments would get through 5 * various TCP/IP packet filters, as used in IP firewalls. In certain 6 * conditions, enough of the TCP header is missing for unpredictable 7 * results unless the filter is aware that this can happen. 8 * 9 * See the IPFILTER.LICENCE file for details on licencing. 10 */ |
11#ifdef __sgi 12# include <sys/ptimers.h> 13#endif |
14#include <stdio.h> 15#include <stdlib.h> 16#include <unistd.h> 17#include <netdb.h> 18#include <string.h> 19#include <sys/types.h> |
20#include <sys/param.h> |
21#include <sys/time.h> 22#include <sys/socket.h> 23#include <netinet/in.h> 24#include <arpa/inet.h> 25#include <netinet/in_systm.h> 26#include <netinet/ip.h> 27#include <netinet/tcp.h> 28#include <netinet/udp.h> 29#include <netinet/ip_icmp.h> 30#ifndef linux 31#include <netinet/ip_var.h> 32#endif 33#include "ipsend.h" 34 35#if !defined(lint) 36static const char sccsid[] = "%W% %G% (C)1995 Darren Reed"; |
37static const char rcsid[] = "@(#)$Id: ipresend.c,v 2.1.4.3 2002/02/22 15:32:57 darrenr Exp $"; |
38#endif 39 40 41extern char *optarg; 42extern int optind; 43#ifndef NO_IPF 44extern struct ipread snoop, pcap, etherf, iphex, tcpd, iptext; 45#endif --- 124 unchanged lines hidden --- |