Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf Add missing extcalls array. This is currently a ...



details:   https://anonhg.NetBSD.org/src/rev/5747a96019c9
branches:  trunk
changeset: 349425:5747a96019c9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 10 19:02:18 2016 +0000

description:
Add missing extcalls array. This is currently a no-op, but this is what
userland does too. Allows npfctl save; npfctl load to work again.

diffstat:

 sys/net/npf/npf_rproc.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 2ee0a7950db5 -r 5747a96019c9 sys/net/npf/npf_rproc.c
--- a/sys/net/npf/npf_rproc.c   Sat Dec 10 17:41:44 2016 +0000
+++ b/sys/net/npf/npf_rproc.c   Sat Dec 10 19:02:18 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_rproc.c,v 1.12 2014/08/11 01:54:12 rmind Exp $     */
+/*     $NetBSD: npf_rproc.c,v 1.13 2016/12/10 19:02:18 christos Exp $  */
 
 /*-
  * Copyright (c) 2009-2013 The NetBSD Foundation, Inc.
@@ -269,6 +269,8 @@
 
        LIST_FOREACH(rp, &rpset->rps_list, rp_entry) {
                rpdict = prop_dictionary_create();
+               prop_array_t extcalls = prop_array_create();
+               prop_dictionary_set_and_rel(rpdict, "extcalls", extcalls);
                prop_dictionary_set_cstring(rpdict, "name", rp->rp_name);
                prop_dictionary_set_uint32(rpdict, "flags", rp->rp_flags);
                prop_array_add(rprocs, rpdict);



Home | Main Index | Thread Index | Old Index