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:
@@ -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);
|
||||
|
||||
@@ -285,6 +285,8 @@ struct pfctl_rule {
|
||||
struct pf_addr addr;
|
||||
uint16_t port;
|
||||
} divert;
|
||||
|
||||
time_t exptime;
|
||||
};
|
||||
|
||||
TAILQ_HEAD(pfctl_rulequeue, pfctl_rule);
|
||||
|
||||
Reference in New Issue
Block a user