]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
39bb53d6 CF |
2 | /* |
3 | * IS-IS Routing protocol - isis_pdu_counter.c | |
4 | * Copyright (C) 2018 Christian Franke, for NetDEF Inc. | |
39bb53d6 CF |
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); | |
4b24eae0 IL |
27 | void pdu_counter_count_drop(struct isis_area *area, uint8_t pdu_type); |
28 | uint64_t pdu_counter_get_count(pdu_counter_t counter, uint8_t pdu_type); | |
39bb53d6 CF |
29 | |
30 | #endif |