pf: print 'once' rule expire time

Obtained from:	OpenBSD, sashan <sashan@openbsd.org>, 8cf23eed7f
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost
2025-08-27 17:51:29 +02:00
parent d3b73a944b
commit b9d652bb75
8 changed files with 20 additions and 2 deletions
+1
View File
@@ -1699,6 +1699,7 @@ static struct snl_attr_parser ap_getrule[] = {
{ .type = PF_RT_MAX_PKT_SIZE, .off =_OUT(r.max_pkt_size), .cb = snl_attr_get_uint16 },
{ .type = PF_RT_TYPE_2, .off = _OUT(r.type), .cb = snl_attr_get_uint16 },
{ .type = PF_RT_CODE_2, .off = _OUT(r.code), .cb = snl_attr_get_uint16 },
{ .type = PF_RT_EXPTIME, .off = _OUT(r.exptime), .cb = snl_attr_get_uint64 },
};
#undef _OUT
SNL_DECLARE_PARSER(getrule_parser, struct genlmsghdr, snl_f_p_empty, ap_getrule);
+2
View File
@@ -285,6 +285,8 @@ struct pfctl_rule {
struct pf_addr addr;
uint16_t port;
} divert;
time_t exptime;
};
TAILQ_HEAD(pfctl_rulequeue, pfctl_rule);