The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7c02ba0cd03495163b55ea24efe0b6feee7490b1

commit 7c02ba0cd03495163b55ea24efe0b6feee7490b1
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-12-18 14:26:41 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-12-18 19:46:42 +0000

    pf: Fix the reply command in a couple of places
    
    libpfctl doesn't notice the mismatch.
    
    Reported by:    Kevin Day <[email protected]>
    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 8d0c7a2cf543..6bd858373bd2 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;
 

Reply via email to