git: a83a49502989 - stable/13 - dtrace: fix ipfw_rule_info_t translator

Andrey V. Elsukov ae at FreeBSD.org
Fri Sep 10 10:36:11 UTC 2021


The branch stable/13 has been updated by ae:

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

commit a83a495029898491ddd070d96ce183fa2796a2c2
Author:     Andrey V. Elsukov <ae at FreeBSD.org>
AuthorDate: 2021-09-02 13:35:01 +0000
Commit:     Andrey V. Elsukov <ae at FreeBSD.org>
CommitDate: 2021-09-10 10:35:35 +0000

    dtrace: fix ipfw_rule_info_t translator
    
    322e5efda8578b has changed field names in the struct ip_fw.
    Use correct names in ipfw_rule_info_t translator in the ipfw.d script.
    
    Reported by:    Keith White <kwhite uottawa at gmail>
    
    (cherry picked from commit 5c8e8e82aeaf3aa788acdd6cfca30ef09094230d)
---
 share/dtrace/ipfw.d | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/dtrace/ipfw.d b/share/dtrace/ipfw.d
index 61d1388c2685..3db51da04887 100644
--- a/share/dtrace/ipfw.d
+++ b/share/dtrace/ipfw.d
@@ -212,8 +212,8 @@ translator ipfw_rule_info_t < struct ip_fw *r > {
 	flags =		r->flags;
 	set =		r->set;
 	rule_id =	r->id;
-	cached_id =	r->cached_id;
-	cached_pos =	r->cached_pos;
+	cached_id =	r->cache.id;
+	cached_pos =	r->cache.pos;
 	refcnt =	r->refcnt;
 };
 


More information about the dev-commits-src-all mailing list