From 7c02ba0cd03495163b55ea24efe0b6feee7490b1 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 18 Dec 2025 14:26:41 +0000 Subject: [PATCH] pf: Fix the reply command in a couple of places libpfctl doesn't notice the mismatch. Reported by: Kevin Day Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54199 --- sys/netpfil/pf/pf_nl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/pf/pf_nl.c b/sys/netpfil/pf/pf_nl.c index 8d0c7a2cf54..6bd858373bd 100644 --- a/sys/netpfil/pf/pf_nl.c +++ b/sys/netpfil/pf/pf_nl.c @@ -1905,7 +1905,7 @@ pf_handle_del_table(struct nlmsghdr *hdr, struct nl_pstate *npt) return (ENOMEM); ghdr_new = nlmsg_reserve_object(nw, struct genlmsghdr); - ghdr_new->cmd = PFNL_CMD_ADD_TABLE; + ghdr_new->cmd = PFNL_CMD_DEL_TABLE; ghdr_new->version = 0; ghdr_new->reserved = 0; @@ -2242,7 +2242,7 @@ pf_handle_table_set_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt) return (ENOMEM); ghdr_new = nlmsg_reserve_object(nw, struct genlmsghdr); - ghdr_new->cmd = PFNL_CMD_TABLE_DEL_ADDR; + ghdr_new->cmd = PFNL_CMD_TABLE_SET_ADDR; ghdr_new->version = 0; ghdr_new->reserved = 0;