summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/ipsend/ipsopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/ipsend/ipsopt.c')
-rw-r--r--contrib/ipfilter/ipsend/ipsopt.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/contrib/ipfilter/ipsend/ipsopt.c b/contrib/ipfilter/ipsend/ipsopt.c
index 144c86f..7f16705 100644
--- a/contrib/ipfilter/ipsend/ipsopt.c
+++ b/contrib/ipfilter/ipsend/ipsopt.c
@@ -1,21 +1,25 @@
+/* $NetBSD$ */
+
/*
* Copyright (C) 1995-1998 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
+ *
*/
-#if defined(__sgi) && (IRIX > 602)
-# include <sys/ptimers.h>
+#if !defined(lint)
+static const char sccsid[] = "@(#)ipsopt.c 1.2 1/11/96 (C)1995 Darren Reed";
+static const char rcsid[] = "@(#)Id: ipsopt.c,v 2.4.4.1 2004/03/23 12:58:05 darrenr Exp";
#endif
#include <sys/param.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
#ifndef linux
#include <netinet/ip_var.h>
#endif
@@ -23,9 +27,13 @@
#include <arpa/inet.h>
#include "ipsend.h"
-#if !defined(lint)
-static const char sccsid[] = "@(#)ipsopt.c 1.2 1/11/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ipsopt.c,v 2.1.4.5 2004/04/10 11:50:52 darrenr Exp $";
+
+#ifndef __P
+# ifdef __STDC__
+# define __P(x) x
+# else
+# define __P(x) ()
+# endif
#endif
@@ -53,7 +61,7 @@ struct ipopt_names secnames[] = {
};
-u_short seclevel(slevel)
+u_short ipseclevel(slevel)
char *slevel;
{
struct ipopt_names *so;
@@ -108,7 +116,7 @@ char *class;
switch (io->on_value)
{
case IPOPT_SECURITY :
- lvl = seclevel(class);
+ lvl = ipseclevel(class);
*(op - 1) = lvl;
break;
case IPOPT_LSRR :
OpenPOWER on IntegriCloud