Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2021 20:13:54 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: cc948296e632 - main - pfctl: Optionally show gateway information for states
Message-ID:  <202105072013.147KDssT012681@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=cc948296e632e023f9374ccee68b5710f2ad54a9

commit cc948296e632e023f9374ccee68b5710f2ad54a9
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-04-28 16:17:40 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-05-07 20:13:30 +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
---
 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?202105072013.147KDssT012681>