Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 2021 11:31:41 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4967f672ef30 - main - pf: Remove unused variable rt_listid from struct pf_krule
Message-ID:  <202104081131.138BVf0c015837@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4967f672ef3095300fe74a9d1ae873d0897cc0a5

commit 4967f672ef3095300fe74a9d1ae873d0897cc0a5
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-04-08 09:08:33 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-04-08 11:24:35 +0000

    pf: Remove unused variable rt_listid from struct pf_krule
    
    Reviewed by:    donner
    MFC after:      4 weeks
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D29639
---
 sys/net/pfvar.h           | 1 -
 sys/netpfil/pf/pf_ioctl.c | 2 --
 2 files changed, 3 deletions(-)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 6102d6186cd2..0e78bcbdf34c 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -356,7 +356,6 @@ struct pf_krule {
 	}			 max_src_conn_rate;
 	u_int32_t		 qid;
 	u_int32_t		 pqid;
-	u_int32_t		 rt_listid;
 	u_int32_t		 nr;
 	u_int32_t		 prob;
 	uid_t			 cuid;
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
index ce889c8d797e..08d9f9530ba9 100644
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -1546,7 +1546,6 @@ pf_krule_to_rule(const struct pf_krule *krule, struct pf_rule *rule)
 	rule->max_src_conn_rate.seconds = krule->max_src_conn_rate.seconds;
 	rule->qid = krule->qid;
 	rule->pqid = krule->pqid;
-	rule->rt_listid = krule->rt_listid;
 	rule->nr = krule->nr;
 	rule->prob = krule->prob;
 	rule->cuid = krule->cuid;
@@ -1680,7 +1679,6 @@ pf_rule_to_krule(const struct pf_rule *rule, struct pf_krule *krule)
 	krule->max_src_conn_rate.seconds = rule->max_src_conn_rate.seconds;
 	krule->qid = rule->qid;
 	krule->pqid = rule->pqid;
-	krule->rt_listid = rule->rt_listid;
 	krule->nr = rule->nr;
 	krule->prob = rule->prob;
 	krule->cuid = rule->cuid;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104081131.138BVf0c015837>