Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2025 19:47:20 +0000
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7c02ba0cd034 - main - pf: Fix the reply command in a couple of places
Message-ID:  <69445a48.3786f.abe8a86@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by markj:

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

commit 7c02ba0cd03495163b55ea24efe0b6feee7490b1
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-12-18 14:26:41 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
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 <kevin@your.org>
    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;
 


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69445a48.3786f.abe8a86>