mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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")
(cherry picked from commit 1c824f430a)
This commit is contained in:
parent
1969d82fcf
commit
71ae1f462b
2 changed files with 7 additions and 0 deletions
|
|
@ -272,6 +272,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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -386,6 +386,7 @@ struct pfctl_syncookies {
|
|||
|
||||
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