summaryrefslogtreecommitdiff
path: root/lib/libnpf
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2016-12-10 21:04:12 +0000
committerchristos <christos@NetBSD.org>2016-12-10 21:04:12 +0000
commit45679deebec61203f2ef5cd165df79077a0a17a9 (patch)
tree55175f2cd4f5f0112f572f339d6a0cecb80a986b /lib/libnpf
parent199fe9ce2cd813a37e262d97e2354fc1676079f3 (diff)
use array notation
Diffstat (limited to 'lib/libnpf')
-rw-r--r--lib/libnpf/npf.c7
-rw-r--r--lib/libnpf/npf.h4
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/libnpf/npf.c b/lib/libnpf/npf.c
index 8b57d2e89cb..e9f6d6ccdd5 100644
--- a/lib/libnpf/npf.c
+++ b/lib/libnpf/npf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: npf.c,v 1.38 2016/12/10 19:07:22 christos Exp $ */
+/* $NetBSD: npf.c,v 1.39 2016/12/10 21:04:12 christos Exp $ */
/*-
* Copyright (c) 2010-2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.38 2016/12/10 19:07:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.39 2016/12/10 21:04:12 christos Exp $");
#include <sys/types.h>
#include <netinet/in_systm.h>
@@ -1249,9 +1249,8 @@ _npf_debug_addif(nl_config_t *ncf, const char *ifname)
prop_object_release(ifdict);
}
-
int
-npf_nat_lookup(int fd, int af, npf_addr_t **addr, in_port_t *port,
+npf_nat_lookup(int fd, int af, npf_addr_t *addr[2], in_port_t port[2],
int proto, int dir)
{
prop_dictionary_t conn_dict, conn_res = NULL;
diff --git a/lib/libnpf/npf.h b/lib/libnpf/npf.h
index b16ebef5b6e..bb8c0e600c7 100644
--- a/lib/libnpf/npf.h
+++ b/lib/libnpf/npf.h
@@ -1,4 +1,4 @@
-/* $NetBSD: npf.h,v 1.29 2016/12/10 05:37:55 christos Exp $ */
+/* $NetBSD: npf.h,v 1.30 2016/12/10 21:04:12 christos Exp $ */
/*-
* Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@ int npf_rproc_insert(nl_config_t *, nl_rproc_t *);
nl_nat_t * npf_nat_create(int, u_int, const char *,
int, npf_addr_t *, npf_netmask_t, in_port_t);
int npf_nat_insert(nl_config_t *, nl_nat_t *, pri_t);
-int npf_nat_lookup(int, int, npf_addr_t **, in_port_t *, int, int);
+int npf_nat_lookup(int, int, npf_addr_t *[2], in_port_t [2], int, int);
nl_table_t * npf_table_create(const char *, u_int, int);
int npf_table_add_entry(nl_table_t *, int,