libpfctl: Return max_win and mss of state peers

The kernel sends PF_STP_MAX_WIN and PF_STP_MSS for both peers of a
state, but struct pfctl_state_peer has no fields for them and libpfctl
dropped them.  Add the fields and parse the attributes.

Reviewed by:		kp
Sponsored by:		Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D60544
This commit is contained in:
R. Christian McDonald committed 2026-10-13 10:49:47 -04:00
1 parent b43c4d84c8
commit 9664345efb
2 files changed
+4

No files matched your search

+2
View File
@@ -1917,6 +1917,8 @@ static const struct snl_attr_parser nla_p_speer[] = {
{ .type = PF_STP_SEQLO, .off = _OUT(seqlo), .cb = snl_attr_get_uint32 },
{ .type = PF_STP_SEQHI, .off = _OUT(seqhi), .cb = snl_attr_get_uint32 },
{ .type = PF_STP_SEQDIFF, .off = _OUT(seqdiff), .cb = snl_attr_get_uint32 },
{ .type = PF_STP_MAX_WIN, .off = _OUT(max_win), .cb = snl_attr_get_uint16 },
{ .type = PF_STP_MSS, .off = _OUT(mss), .cb = snl_attr_get_uint16 },
{ .type = PF_STP_STATE, .off = _OUT(state), .cb = snl_attr_get_uint8 },
{ .type = PF_STP_WSCALE, .off = _OUT(wscale), .cb = snl_attr_get_uint8 },
};
+2
View File
@@ -359,6 +359,8 @@ struct pfctl_state_peer {
uint32_t seqdiff;
uint8_t state;
uint8_t wscale;
uint16_t max_win;
uint16_t mss;
};
struct pfctl_state_key {