mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
libpfctl: add missing pfctl_status_lcounter() function
We already had accessors for the other types of counters, but not this one. MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
0590ed0967
commit
1c824f430a
|
@ -309,6 +309,12 @@ pfctl_status_counter(struct pfctl_status *status, int id)
|
|||
return (_pfctl_status_counter(&status->counters, id));
|
||||
}
|
||||
|
||||
uint64_t
|
||||
pfctl_status_lcounter(struct pfctl_status *status, int id)
|
||||
{
|
||||
return (_pfctl_status_counter(&status->lcounters, id));
|
||||
}
|
||||
|
||||
uint64_t
|
||||
pfctl_status_fcounter(struct pfctl_status *status, int id)
|
||||
{
|
||||
|
|
|
@ -388,6 +388,7 @@ struct pfctl_syncookies {
|
|||
int pfctl_startstop(int start);
|
||||
struct pfctl_status* pfctl_get_status(int dev);
|
||||
uint64_t pfctl_status_counter(struct pfctl_status *status, int id);
|
||||
uint64_t pfctl_status_lcounter(struct pfctl_status *status, int id);
|
||||
uint64_t pfctl_status_fcounter(struct pfctl_status *status, int id);
|
||||
uint64_t pfctl_status_scounter(struct pfctl_status *status, int id);
|
||||
void pfctl_free_status(struct pfctl_status *status);
|
||||
|
|
Loading…
Reference in a new issue