diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-08 16:53:53 -0800 |
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2018-01-15 16:55:24 -0800 |
| commit | 43855e3d47c25704afb52d65fcf44e56f87c00c4 (patch) | |
| tree | 42e88be642a9d2573aae679aea00e83f1ae33a70 /ospf6d/ospf6_interface.h | |
| parent | 3cd878d9250347863372dba152d1cd47a745576b (diff) | |
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 3844132366..b67d9a9f2e 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) |
