1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * IS-IS Routing protocol - isis_pdu_counter.c
4 * Copyright (C) 2018 Christian Franke, for NetDEF Inc.
6 #ifndef ISIS_PDU_COUNTER_H
7 #define ISIS_PDU_COUNTER_H
9 enum pdu_counter_index
{
10 L1_LAN_HELLO_INDEX
= 0,
16 L1_COMPLETE_SEQ_NUM_INDEX
,
17 L2_COMPLETE_SEQ_NUM_INDEX
,
18 L1_PARTIAL_SEQ_NUM_INDEX
,
19 L2_PARTIAL_SEQ_NUM_INDEX
,
22 typedef uint64_t pdu_counter_t
[PDU_COUNTER_SIZE
];
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 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
);