2
* Copyright (c) 2011-2014 M3S, Srl - Italy
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at:
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
18
* Rapid Spanning Tree Protocol (IEEE 802.1D-2004) state machines
19
* implementation (header file).
22
* Martino Fornasa <mf@fornasa.it>
23
* Daniele Venturino <daniele.venturino@m3s.it>
25
* References to IEEE 802.1D-2004 standard are enclosed in square brackets.
26
* E.g. [17.3], [Table 17-1], etc.
30
#ifndef RSTP_STATE_MACHINES_H
31
#define RSTP_STATE_MACHINES_H 1
33
#include "rstp-common.h"
35
/* Methods called by the Forwarding Layer, through functions of rstp.h. */
36
int move_rstp__(struct rstp *)
37
OVS_REQUIRES(rstp_mutex);
38
void decrease_rstp_port_timers__(struct rstp *)
39
OVS_REQUIRES(rstp_mutex);
40
void process_received_bpdu__(struct rstp_port *, const void *, size_t)
41
OVS_REQUIRES(rstp_mutex);
43
void updt_roles_tree__(struct rstp *)
44
OVS_REQUIRES(rstp_mutex);
46
#endif /* rstp-state-machines.h */