-
Notifications
You must be signed in to change notification settings - Fork 5
/
spftrace.h
79 lines (66 loc) · 2.22 KB
/
spftrace.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* =====================================================================================
*
* Filename: spftrace.h
*
* Description: This file defines the enums for TRACE categories
*
* Version: 1.0
* Created: Friday 16 February 2018 02:09:45 IST
* Revision: 1.0
* Compiler: gcc
*
* Author: Er. Abhishek Sagar, Networking Developer (AS), [email protected]
* Company: Brocade Communications(Jul 2012- Mar 2016), Current : Juniper Networks(Apr 2017 - Present)
*
* This file is part of the SPFComputation distribution (https://github.com/sachinites).
* Copyright (c) 2017 Abhishek Sagar.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* =====================================================================================
*/
#ifndef __SPF_TRACE__
#define __SPF_TRACE__
typedef enum{
DIJKSTRA_BIT,
ROUTE_INSTALLATION_BIT,
BACKUP_COMPUTATION_BIT,
ROUTE_CALCULATION_BIT,
SPF_PREFIX_BIT,
ROUTING_TABLE_BIT,
CONFLICT_RESOLUTION_BIT,
SPF_EVENTS_BIT,
SPRING_ROUTE_CAL_BIT,
TILFA_BIT,
TRACE_MAX_BIT
} spf_trace_t;
void
enable_spf_tracing();
void
disable_spf_tracing();
char *
get_str_trace(spf_trace_t trace_type);
void
display_spf_traces();
typedef struct instance_ instance_t;
void
enable_spf_trace(instance_t *instance, spf_trace_t spf_trace);
void
disable_spf_trace(instance_t *instance, spf_trace_t spf_trace);
/* 1 if enabled, 0 if disabled*/
unsigned char
is_spf_trace_enabled(instance_t *instance, spf_trace_t spf_trace);
void
spf_display_trace_options();
#define __ENABLE_TRACE__
#endif /* __SPF_TRACE__ */