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 */
| 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
|
11#include <stdio.h> 12#include <stdlib.h> 13#include <unistd.h> 14#include <netdb.h> 15#include <string.h> 16#include <sys/types.h>
| 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>
|
17#include <sys/time.h> 18#include <sys/socket.h> 19#include <netinet/in.h> 20#include <arpa/inet.h> 21#include <netinet/in_systm.h> 22#include <netinet/ip.h> 23#include <netinet/tcp.h> 24#include <netinet/udp.h> 25#include <netinet/ip_icmp.h> 26#ifndef linux 27#include <netinet/ip_var.h> 28#endif 29#include "ipsend.h" 30 31#if !defined(lint) 32static const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
| 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";
|
33static const char rcsid[] = "@(#)$Id: ipresend.c,v 2.1.4.2 2001/07/15 22:00:13 darrenr Exp $";
| 37static const char rcsid[] = "@(#)$Id: ipresend.c,v 2.1.4.3 2002/02/22 15:32:57 darrenr Exp $";
|
34#endif 35 36 37extern char *optarg; 38extern int optind; 39#ifndef NO_IPF 40extern struct ipread snoop, pcap, etherf, iphex, tcpd, iptext; 41#endif
--- 124 unchanged lines hidden --- | 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 --- |