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