2 * IS-IS Routing protocol - isis_pdu_counter.c
3 * Copyright (C) 2018 Christian Franke, for NetDEF Inc.
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)
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
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
19 #ifndef ISIS_PDU_COUNTER_H
20 #define ISIS_PDU_COUNTER_H
22 enum pdu_counter_index
{
23 L1_LAN_HELLO_INDEX
= 0,
29 L1_COMPLETE_SEQ_NUM_INDEX
,
30 L2_COMPLETE_SEQ_NUM_INDEX
,
31 L1_PARTIAL_SEQ_NUM_INDEX
,
32 L2_PARTIAL_SEQ_NUM_INDEX
,
35 typedef uint64_t pdu_counter_t
[PDU_COUNTER_SIZE
];
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
);