forked from yellowman/nsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbridge.h
More file actions
35 lines (29 loc) · 746 Bytes
/
bridge.h
File metadata and controls
35 lines (29 loc) · 746 Bytes
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
/* request types for bridge_cfg() */
#define PRIORITY 0
#define HELLOTIME 1
#define FWDDELAY 2
#define MAXAGE 3
#define MAXADDR 4
#define TIMEOUT 5
#define DEFAULT_PRIORITY 32768
#define DEFAULT_HELLOTIME 2
#define DEFAULT_FWDDELAY 15
#define DEFAULT_MAXAGE 20
#define DEFAULT_MAXADDR 100
#define DEFAULT_TIMEOUT 240
#define DEFAULT_IFPRIORITY 128
#define DEFAULT_IFCOST 55
/* request types for bridge_list() */
#define NOLEARNING 1
#define NODISCOVER 2
#define BLOCKNONIP 3
#define STP 4
#define SPAN 11
#define CONF_IFPRIORITY 100
#define SHOW_STPSTATE 101
#define MEMBER 102
#define CONF_IFCOST 103
#define PROTECTED 104
/* blah */
#define IFBAFBITS "\1STATIC"
#define IFBIFBITS "\1LEARNING\2DISCOVER\3BLOCKNONIP\4STP\11SPAN"