]> git.proxmox.com Git - mirror_frr.git/blob - isisd/isis_pdu_counter.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / isisd / isis_pdu_counter.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * IS-IS Routing protocol - isis_pdu_counter.c
4 * Copyright (C) 2018 Christian Franke, for NetDEF Inc.
5 */
6 #ifndef ISIS_PDU_COUNTER_H
7 #define ISIS_PDU_COUNTER_H
8
9 enum pdu_counter_index {
10 L1_LAN_HELLO_INDEX = 0,
11 L2_LAN_HELLO_INDEX,
12 P2P_HELLO_INDEX,
13 L1_LINK_STATE_INDEX,
14 L2_LINK_STATE_INDEX,
15 FS_LINK_STATE_INDEX,
16 L1_COMPLETE_SEQ_NUM_INDEX,
17 L2_COMPLETE_SEQ_NUM_INDEX,
18 L1_PARTIAL_SEQ_NUM_INDEX,
19 L2_PARTIAL_SEQ_NUM_INDEX,
20 PDU_COUNTER_SIZE
21 };
22 typedef uint64_t pdu_counter_t[PDU_COUNTER_SIZE];
23
24 void pdu_counter_print(struct vty *vty, const char *prefix,
25 pdu_counter_t counter);
26 void pdu_counter_count(pdu_counter_t counter, uint8_t pdu_type);
27
28 #endif