Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libnpf use array notation



details:   https://anonhg.NetBSD.org/src/rev/e05e99114a6d
branches:  trunk
changeset: 349430:e05e99114a6d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 10 21:04:12 2016 +0000

description:
use array notation

diffstat:

 lib/libnpf/npf.c |  7 +++----
 lib/libnpf/npf.h |  4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 30feea2e1ecb -r e05e99114a6d lib/libnpf/npf.c
--- a/lib/libnpf/npf.c  Sat Dec 10 20:02:07 2016 +0000
+++ b/lib/libnpf/npf.c  Sat Dec 10 21:04:12 2016 +0000
@@ -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 @@
        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 -r 30feea2e1ecb -r e05e99114a6d lib/libnpf/npf.h
--- a/lib/libnpf/npf.h  Sat Dec 10 20:02:07 2016 +0000
+++ b/lib/libnpf/npf.h  Sat Dec 10 21:04:12 2016 +0000
@@ -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 @@
 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,



Home | Main Index | Thread Index | Old Index