aboutsummaryrefslogtreecommitdiff
path: root/contrib/pf/pfctl/pfctl_radix.c
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2005-05-03 16:47:37 +0000
committerMax Laier <mlaier@FreeBSD.org>2005-05-03 16:47:37 +0000
commit61a1372b419ef876d7a8948241bc561a1866448c (patch)
treebab48c44c0d19fa874cf07baf703335409f81c2b /contrib/pf/pfctl/pfctl_radix.c
parent8a7574f3ced06b8564a828b8f9ffc0b905f9b7b5 (diff)
downloadsrc-61a1372b419ef876d7a8948241bc561a1866448c.tar.gz
src-61a1372b419ef876d7a8948241bc561a1866448c.zip
Import pf userland from OpenBSD 3.7 (OPENBSD_3_7 as of today)vendor/pf/3.7
Notes
Notes: svn path=/vendor/pf/dist/; revision=145837 svn path=/vendor/pf/3.7/; revision=145839; tag=vendor/pf/3.7
Diffstat (limited to 'contrib/pf/pfctl/pfctl_radix.c')
-rw-r--r--contrib/pf/pfctl/pfctl_radix.c42
1 files changed, 2 insertions, 40 deletions
diff --git a/contrib/pf/pfctl/pfctl_radix.c b/contrib/pf/pfctl/pfctl_radix.c
index 04fb4872ef6d..ba004b83910a 100644
--- a/contrib/pf/pfctl/pfctl_radix.c
+++ b/contrib/pf/pfctl/pfctl_radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_radix.c,v 1.24 2004/02/10 18:29:30 henning Exp $ */
+/* $OpenBSD: pfctl_radix.c,v 1.26 2004/06/14 20:44:22 cedric Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -393,44 +393,6 @@ pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size,
}
int
-pfr_ina_begin(struct pfr_table *trs, int *ticket, int *ndel, int flags)
-{
- struct pfioc_table io;
-
- bzero(&io, sizeof io);
- if (trs != NULL)
- io.pfrio_table = *trs;
- io.pfrio_flags = flags;
- if (ioctl(dev, DIOCRINABEGIN, &io))
- return (-1);
- if (ndel != NULL)
- *ndel = io.pfrio_ndel;
- if (ticket != NULL)
- *ticket = io.pfrio_ticket;
- return (0);
-}
-
-int
-pfr_ina_commit(struct pfr_table *trs, int ticket, int *nadd, int *nchange,
- int flags)
-{
- struct pfioc_table io;
-
- bzero(&io, sizeof io);
- if (trs != NULL)
- io.pfrio_table = *trs;
- io.pfrio_flags = flags;
- io.pfrio_ticket = ticket;
- if (ioctl(dev, DIOCRINACOMMIT, &io))
- return (-1);
- if (nadd != NULL)
- *nadd = io.pfrio_nadd;
- if (nchange != NULL)
- *nchange = io.pfrio_nchange;
- return (0);
-}
-
-int
pfr_ina_define(struct pfr_table *tbl, struct pfr_addr *addr, int size,
int *nadd, int *naddr, int ticket, int flags)
{
@@ -605,7 +567,7 @@ pfr_buf_load(struct pfr_buffer *b, char *file, int nonetwork,
if (!strcmp(file, "-"))
fp = stdin;
else {
- fp = fopen(file, "r");
+ fp = pfctl_fopen(file, "r");
if (fp == NULL)
return (-1);
}