OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [tcpip/] [current/] [doc/] [openbsd-manpages-stp.sgml] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
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
Spanning Tree Protocol
32
33
NAME
34
     stp - Spanning Tree Protocol
35
 
36
SYNOPSIS
37
 
38
 
39
DESCRIPTION
40
     Spanning Tree (STP) is a layer 2 protocol designed to run on bridges. The
41
     main purpose of STP is to ensure that there are no loop situations when
42
     redundant paths are provisioned in the network. STP detects and disables
43
     creation of network loops by blocking certain ports on some of the bridges
44
     in the network. The process of selection of blocking ports (on occurance
45
     of redundant paths) is governed by the following three parameters :
46
 
47
     - Relative priority of each bridge. A higher value means lower priority.
48
     - Relative priority of each port within a bridge. A higher value means
49
       lower priority.
50
     - Path cost (based on physical media type) associated with each port.
51
 
52
     A given port/interface participates in STP if the flag IFBIF_STP is
53
     set for the interface. A possible time for setting this flag is at the
54
     time when the interface in context is added to bridge.
55
 
56
IOCTLS
57
     The STP code is invoked for all ioctl calls specified in bridge section.
58
     The following ioctl calls are specific to STP functionality. They are
59
     defined in <sys/sockio.h>.
60
 
61
     SIOCBRDGGPRI         (struct ifbrparam) Get the configured priority of this
62
                          bridge. The priority value could vary from 0 to 65535.
63
 
64
                          configured value is returned in field ifbrp_prio.
65
 
66
     SIOCBRDGSPRI         (struct ifbrparam) Set priority of this bridge to the
67
                          value specified in field ifbrp_prio.
68
 
69
     SIOCBRDGGHT          (struct ifbrparam) Get the configured frequency of
70
                          transmission of hello packets from non-blocking
71
                          interfaces on this bridge. The configured frequency is
72
                          returned in field ifbrp_hellotime.
73
 
74
     SIOCBRDGSHT          (struct ifbrparam) Set the frequency of transmission
75
                          of hello packets to the value specified in field
76
                          ifbrp_hellotime. The specified value should be greater
77
                          than 0, else EINVAL is returned.
78
 
79
     SIOCBRDGGFD          (struct ifbrparam) Get the forwarding delay time
80
                          associated with ports/interfaces on this bridge. The
81
                          forwarding delay time is the time taken by a port
82
                          to transit from one state to other (for eg. from
83
                          LEARNING state to FORWARDING state). The configured
84
                          value if returned in field ifbrp_fwddelay.
85
 
86
     SIOCBRDGSFD          (struct ifbrparam) Set the forwarding delay for ports
87
                          attached to this bridge to a value specified in
88
                          field ifbrp_fwddelay. The specified value should be
89
                          greater than 0, else EINVAL is returned.
90
 
91
     SIOCBRDGGMA          (struct ifbrparam) Get aging timeout values of
92
                          spanning data. The timeout value is returned in field
93
                          ifbrp_maxage.
94
 
95
     SIOCBRDGSMA          (struct ifbrparam) Set the aging timeout value of
96
                          BPDUs to the value specified in ifbrp_maxage. The
97
                          specified value should be greater than 0, else
98
                          EINVAL is returned.
99
 
100
     SIOCBRDGSIFPRIO      (struct ifbreq) Set the priority of specified
101
                          interface to the value given in field ifbr_priority.
102
 
103
     SIOCBRDGSIFCOST      (struct ifbreq) Set the cost associated with the
104
                          given interface to the value specified in field
105
                          ifbr_path_cost.
106
 
107
 
108
ERRORS
109
     Same as the ones specified for bridge.
110
 
111
SEE ALSO
112
     netintro, bridge
113
 
114
115
116
 
117
135
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.