Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2021 13:06:48 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 714762dad401 - stable/13 - pfctl: Optionally show gateway information for states
Message-ID:  <202105141306.14ED6m0J052501@gitrepo.freebsd.org>

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

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

commit 714762dad401e55e1bfc1215d94a4d585a03f045
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-04-28 16:17:40 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-05-14 08:21:37 +0000

    pfctl: Optionally show gateway information for states
    
    When showing the states, in very verbose mode, also display the gateway
    (i.e. the target for route-to/reply-to).
    
    Submitted by:   Steven Brown
    Reviewed by:    donner
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D30051
    
    (cherry picked from commit cc948296e632e023f9374ccee68b5710f2ad54a9)
---
 sbin/pfctl/pf_print_state.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index 810c773f1019..e2f9d6efe609 100644
--- a/sbin/pfctl/pf_print_state.c
+++ b/sbin/pfctl/pf_print_state.c
@@ -354,6 +354,8 @@ print_state(struct pfsync_state *s, int opts)
 		bcopy(&s->id, &id, sizeof(u_int64_t));
 		printf("   id: %016jx creatorid: %08x",
 		    (uintmax_t )be64toh(id), ntohl(s->creatorid));
+		printf("   gateway: ");
+		print_host(&s->rt_addr, 0, s->af, opts);
 		printf("\n");
 	}
 }



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