diff options
author | peter <peter@FreeBSD.org> | 2000-02-10 03:17:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-02-10 03:17:51 +0000 |
commit | cf9ed6d8c95a64abfd95e56a3325ed36e030ebd6 (patch) | |
tree | 4ca6f882645735894b392933cb539998c8e05326 /contrib/ipfilter/ipsend | |
parent | 681d6b5c31759a5f92f206cdc05e9b377807239a (diff) | |
download | FreeBSD-src-cf9ed6d8c95a64abfd95e56a3325ed36e030ebd6.zip FreeBSD-src-cf9ed6d8c95a64abfd95e56a3325ed36e030ebd6.tar.gz |
Not in this commit: Many spammed deltas have been removed to restore
back to the vendor branch.
Re-merge changes from the vendor branch.
Undo the local spammed changes that I could find. There are probably
more local fixes that were clobbered that I've missed.
Diffstat (limited to 'contrib/ipfilter/ipsend')
-rw-r--r-- | contrib/ipfilter/ipsend/ipsend.c | 10 | ||||
-rw-r--r-- | contrib/ipfilter/ipsend/sbpf.c | 11 | ||||
-rw-r--r-- | contrib/ipfilter/ipsend/sock.c | 11 |
3 files changed, 21 insertions, 11 deletions
diff --git a/contrib/ipfilter/ipsend/ipsend.c b/contrib/ipfilter/ipsend/ipsend.c index 950d5bf..b0d997d 100644 --- a/contrib/ipfilter/ipsend/ipsend.c +++ b/contrib/ipfilter/ipsend/ipsend.c @@ -1,5 +1,6 @@ +/* $FreeBSD$ */ /* - * ipsend.c (C) 1995-1997 Darren Reed + * ipsend.c (C) 1995-1998 Darren Reed * * This was written to test what size TCP fragments would get through * various TCP/IP packet filters, as used in IP firewalls. In certain @@ -12,13 +13,14 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ipsend.c 1.5 12/10/95 (C)1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ipsend.c,v 2.0.2.19.2.1 1998/05/14 14:01:19 darrenr Exp $"; +static const char rcsid[] = "@(#)$Id: ipsend.c,v 2.1.2.2 1999/11/28 03:43:44 darrenr Exp $"; #endif #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netdb.h> #include <string.h> +#include <sys/param.h> #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> @@ -32,7 +34,6 @@ static const char rcsid[] = "@(#)$Id: ipsend.c,v 2.0.2.19.2.1 1998/05/14 14:01:1 #ifndef linux #include <netinet/ip_var.h> #endif -#include <netinet/ip_compat.h> #include "ipsend.h" #include "ipf.h" @@ -177,7 +178,8 @@ char **argv; struct in_addr gwip; tcphdr_t *tcp; ip_t *ip; - char *name = argv[0], host[64], *gateway = NULL, *dev = NULL; + char *name = argv[0], host[MAXHOSTNAMELEN + 1]; + char *gateway = NULL, *dev = NULL; char *src = NULL, *dst, *s; int mtu = 1500, olen = 0, c, nonl = 0; diff --git a/contrib/ipfilter/ipsend/sbpf.c b/contrib/ipfilter/ipsend/sbpf.c index 2023b46..2a1ce60 100644 --- a/contrib/ipfilter/ipsend/sbpf.c +++ b/contrib/ipfilter/ipsend/sbpf.c @@ -1,5 +1,6 @@ +/* $FreeBSD$ */ /* - * (C)opyright 1995-1997 Darren Reed. (from tcplog) + * (C)opyright 1995-1998 Darren Reed. (from tcplog) * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and due credit is given @@ -23,7 +24,11 @@ #include <sys/ioctl.h> #if BSD < 199103 #include <sys/fcntlcom.h> -#include <sys/dir.h> +#endif +#if (__FreeBSD_version >= 300000) +# include <sys/dirent.h> +#else +# include <sys/dir.h> #endif #include <net/bpf.h> @@ -39,7 +44,7 @@ #if !defined(lint) static const char sccsid[] = "@(#)sbpf.c 1.3 8/25/95 (C)1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: sbpf.c,v 2.0.2.7 1997/10/23 11:42:47 darrenr Exp $"; +static const char rcsid[] = "@(#)$Id: sbpf.c,v 2.1 1999/08/04 17:31:13 darrenr Exp $"; #endif /* diff --git a/contrib/ipfilter/ipsend/sock.c b/contrib/ipfilter/ipsend/sock.c index 13bce21..a998c90 100644 --- a/contrib/ipfilter/ipsend/sock.c +++ b/contrib/ipfilter/ipsend/sock.c @@ -1,5 +1,6 @@ +/* $FreeBSD$ */ /* - * sock.c (C) 1995-1997 Darren Reed + * sock.c (C) 1995-1998 Darren Reed * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and due credit is given @@ -7,7 +8,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)sock.c 1.2 1/11/96 (C)1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: sock.c,v 2.0.2.9.2.1 1997/11/28 03:36:01 darrenr Exp $"; +static const char rcsid[] = "@(#)$Id: sock.c,v 2.1 1999/08/04 17:31:16 darrenr Exp $"; #endif #include <stdio.h> #include <unistd.h> @@ -22,8 +23,10 @@ static const char rcsid[] = "@(#)$Id: sock.c,v 2.0.2.9.2.1 1997/11/28 03:36:01 d #ifndef ultrix #include <fcntl.h> #endif -#ifndef __FreeBSD__ -#include <sys/dir.h> +#if (__FreeBSD_version >= 300000) +# include <sys/dirent.h> +#else +# include <sys/dir.h> #endif #define _KERNEL #define KERNEL |