]> git.proxmox.com Git - mirror_ovs.git/blame - lib/rstp-state-machines.h
ipf: Avoid accessing to a freed rp.
[mirror_ovs.git] / lib / rstp-state-machines.h
CommitLineData
9efd308e 1/*
eb1746e6 2 * Copyright (c) 2011-2015 M3S, Srl - Italy
9efd308e
DV
3 *
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:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17/*
18 * Rapid Spanning Tree Protocol (IEEE 802.1D-2004) state machines
19 * implementation (header file).
20 *
21 * Authors:
22 * Martino Fornasa <mf@fornasa.it>
23 * Daniele Venturino <daniele.venturino@m3s.it>
eb1746e6 24 * Carlo Andreotti <c.andreotti@m3s.it>
9efd308e
DV
25 *
26 * References to IEEE 802.1D-2004 standard are enclosed in square brackets.
27 * E.g. [17.3], [Table 17-1], etc.
28 *
29 */
30
31#ifndef RSTP_STATE_MACHINES_H
32#define RSTP_STATE_MACHINES_H 1
33
34#include "rstp-common.h"
35
36/* Methods called by the Forwarding Layer, through functions of rstp.h. */
f025bcb7
JR
37int move_rstp__(struct rstp *)
38 OVS_REQUIRES(rstp_mutex);
39void decrease_rstp_port_timers__(struct rstp *)
40 OVS_REQUIRES(rstp_mutex);
41void process_received_bpdu__(struct rstp_port *, const void *, size_t)
42 OVS_REQUIRES(rstp_mutex);
9efd308e 43
f025bcb7
JR
44void updt_roles_tree__(struct rstp *)
45 OVS_REQUIRES(rstp_mutex);
9efd308e
DV
46
47#endif /* rstp-state-machines.h */