On Tue, Jan 14, 2025 at 10:37:45AM +0000, Kristof Provost wrote:
K> The branch main has been updated by kp:
K> 
K> URL: 
https://cgit.FreeBSD.org/src/commit/?id=441d489493e8a1e2658306f1a4c709a0b18cc78b
K> 
K> commit 441d489493e8a1e2658306f1a4c709a0b18cc78b
K> Author:     Kristof Provost <k...@freebsd.org>
K> AuthorDate: 2024-12-03 15:53:08 +0000
K> Commit:     Kristof Provost <k...@freebsd.org>
K> CommitDate: 2025-01-14 08:54:17 +0000
K> 
K>     pf: convert DIOCRCLRTABLES to netlink
K>     
K>     Sponsored by:   Rubicon Communications, LLC ("Netgate")
K> ---
K>  lib/libpfctl/libpfctl.c  | 44 ++++++++++++++++++++++++++++++++++++++
K>  lib/libpfctl/libpfctl.h  |  3 +++
K>  sbin/pfctl/pfctl.c       |  4 ++--
K>  sbin/pfctl/pfctl.h       |  5 +++--
K>  sbin/pfctl/pfctl_radix.c | 16 --------------
K>  sbin/pfctl/pfctl_table.c |  4 ++--
K>  sys/netpfil/pf/pf_nl.c   | 55 
++++++++++++++++++++++++++++++++++++++++++++++++
K>  sys/netpfil/pf/pf_nl.h   | 10 +++++++++
K>  8 files changed, 119 insertions(+), 22 deletions(-)
K> 
K> diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
K> index 2e4cdb91bad9..b374ef05e4d7 100644
K> --- a/lib/libpfctl/libpfctl.c
K> +++ b/lib/libpfctl/libpfctl.c
K> @@ -3072,3 +3072,47 @@ pfctl_get_srcnodes(struct pfctl_handle *h, 
pfctl_get_srcnode_fn fn, void *arg)
K>  
K>      return (e.error);
K>  }
K> +
K> +static struct snl_attr_parser ap_ndel[] = {
K> +    { .type = PF_T_NBR_DELETED, .off = 0, .cb = snl_attr_get_uint32 },
K> +};
K> +static struct snl_field_parser fp_ndel[] = {};
K> +SNL_DECLARE_PARSER(ndel_parser, struct genlmsghdr, fp_ndel, ap_ndel);

Looks like userland can also appreciate an empty vector that belongs
to the library.  Just like in e9255dafa1ef0c635385aee78ead3a0050b19cca.

-- 
Gleb Smirnoff

Reply via email to