]>
Commit | Line | Data |
---|---|---|
39bb53d6 CF |
1 | /* |
2 | * IS-IS Routing protocol - isis_pdu_counter.c | |
3 | * Copyright (C) 2018 Christian Franke, for NetDEF Inc. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the Free | |
7 | * Software Foundation; either version 2 of the License, or (at your option) | |
8 | * any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along | |
16 | * with this program; see the file COPYING; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | */ | |
19 | #ifndef ISIS_PDU_COUNTER_H | |
20 | #define ISIS_PDU_COUNTER_H | |
21 | ||
22 | enum pdu_counter_index { | |
23 | L1_LAN_HELLO_INDEX = 0, | |
24 | L2_LAN_HELLO_INDEX, | |
25 | P2P_HELLO_INDEX, | |
26 | L1_LINK_STATE_INDEX, | |
27 | L2_LINK_STATE_INDEX, | |
28 | FS_LINK_STATE_INDEX, | |
29 | L1_COMPLETE_SEQ_NUM_INDEX, | |
30 | L2_COMPLETE_SEQ_NUM_INDEX, | |
31 | L1_PARTIAL_SEQ_NUM_INDEX, | |
32 | L2_PARTIAL_SEQ_NUM_INDEX, | |
33 | PDU_COUNTER_SIZE | |
34 | }; | |
35 | typedef uint64_t pdu_counter_t[PDU_COUNTER_SIZE]; | |
36 | ||
37 | void pdu_counter_print(struct vty *vty, const char *prefix, | |
38 | pdu_counter_t counter); | |
39 | void pdu_counter_count(pdu_counter_t counter, uint8_t pdu_type); | |
40 | ||
41 | #endif |