diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-09 01:53:53 +0100 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-16 01:55:24 +0100 |
commit | 43855e3d47c25704afb52d65fcf44e56f87c00c4 (patch) | |
tree | 42e88be642a9d2573aae679aea00e83f1ae33a70 /ospf6d/ospf6_interface.h | |
parent | Merge pull request #1623 from donaldsharp/zebra_interface_one_shot (diff) | |
download | frr-43855e3d47c25704afb52d65fcf44e56f87c00c4.tar.xz frr-43855e3d47c25704afb52d65fcf44e56f87c00c4.zip |
ospf6d: Add protocol stats and show command
Add OSPFv3 Protocol incoming/outgoing packets
stats.
r3# show ipv6 ospf6 interface traffic
Interface HELLO DB-Desc LS-Req LS-Update LS-Ack
Rx/Tx Rx/Tx Rx/Tx Rx/Tx Rx/Tx
--------------------------------------------------------------------------------------------
swp1 3/4 2/2 0/2 8/6 3/2
swp2 3/4 2/2 0/1 7/3 2/0
swp3 0/4 0/0 0/0 0/0 0/0
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_interface.h')
-rw-r--r-- | ospf6d/ospf6_interface.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ospf6d/ospf6_interface.h b/ospf6d/ospf6_interface.h index 384413236..b67d9a9f2 100644 --- a/ospf6d/ospf6_interface.h +++ b/ospf6d/ospf6_interface.h @@ -117,6 +117,19 @@ struct ospf6_interface { /* BFD information */ void *bfd_info; + /* Statistics Fields */ + u_int32_t hello_in; + u_int32_t hello_out; + u_int32_t db_desc_in; + u_int32_t db_desc_out; + u_int32_t ls_req_in; + u_int32_t ls_req_out; + u_int32_t ls_upd_in; + u_int32_t ls_upd_out; + u_int32_t ls_ack_in; + u_int32_t ls_ack_out; + u_int32_t discarded; + QOBJ_FIELDS }; DECLARE_QOBJ_TYPE(ospf6_interface) |