summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/make_range.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/lib/make_range.c')
-rw-r--r--contrib/ipfilter/lib/make_range.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/make_range.c b/contrib/ipfilter/lib/make_range.c
new file mode 100644
index 0000000..9ec3ca3
--- /dev/null
+++ b/contrib/ipfilter/lib/make_range.c
@@ -0,0 +1,26 @@
+/* $NetBSD$ */
+
+/*
+ * Copyright (C) 2002 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * Id: make_range.c,v 1.2 2002/05/18 07:27:52 darrenr Exp
+ */
+#include "ipf.h"
+
+
+alist_t *make_range(not, a1, a2)
+int not;
+struct in_addr a1, a2;
+{
+ alist_t *a;
+
+ a = (alist_t *)calloc(1, sizeof(*a));
+ if (a != NULL) {
+ a->al_1 = a1.s_addr;
+ a->al_2 = a2.s_addr;
+ a->al_not = not;
+ }
+ return a;
+}
OpenPOWER on IntegriCloud