diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-07-13 17:41:41 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-07-13 17:41:41 +0200 |
commit | 3667e8a081ee4e036c1ffb7cf8f14477c051478f (patch) | |
tree | 4c7d7fb1c58f1132987866377ba3714a7d814481 /pimd/pim_oil.h | |
parent | bgpd: Disallow ebgp-multihop on swpX peers (diff) | |
download | frr-3667e8a081ee4e036c1ffb7cf8f14477c051478f.tar.xz frr-3667e8a081ee4e036c1ffb7cf8f14477c051478f.zip |
pimd: Add generic function to retrieve mroute stats
Add a generic function to retrieve mroute statistics
from the kernel.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_oil.h')
-rw-r--r-- | pimd/pim_oil.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pimd/pim_oil.h b/pimd/pim_oil.h index 143f2345f..c63c026c0 100644 --- a/pimd/pim_oil.h +++ b/pimd/pim_oil.h @@ -50,6 +50,17 @@ #define PIM_OIF_PIM_REGISTER_VIF (MAXVIFS - 1) #define PIM_MAX_USABLE_VIFS (MAXVIFS - 2) + +struct channel_counts +{ + unsigned long pktcnt; + unsigned long oldpktcnt; + unsigned long bytecnt; + unsigned long oldbytecnt; + unsigned long wrong_if; + unsigned long oldwrong_if; +}; + /* qpim_channel_oil_list holds a list of struct channel_oil. @@ -64,6 +75,7 @@ struct channel_oil { int oil_ref_count; time_t oif_creation[MAXVIFS]; uint32_t oif_flags[MAXVIFS]; + struct channel_counts cc; }; void pim_channel_oil_free(struct channel_oil *c_oil); |