stp_operation.c File Reference

Operation of the protocol. More...

#include "stp/stp.h"
#include "stp/stp_operation.h"
#include "stp/stp_procedures.h"
#include "stp/stp_conditions.h"
#include "stp/stp_misc.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   STP_TRACE_LEVEL
 

Functions

void stpReceivedConfigBpdu (StpBridgePort *port, const StpBpdu *bpdu)
 Received Configuration BPDU (8.7.1) More...
 
void stpReceivedTcnBpdu (StpBridgePort *port, const StpBpdu *bpdu)
 Received Topology Change Notification BPDU (8.7.2) More...
 
void stpHelloTimerExpiry (StpBridgeContext *context)
 Hello Timer expiry (8.7.3) More...
 
void stpMessageAgeTimerExpiry (StpBridgePort *port)
 Message Age Timer expiry (8.7.4) More...
 
void stpForwardDelayTimerExpiry (StpBridgePort *port)
 Forward Delay Timer expiry (8.7.5) More...
 
void stpTcnTimerExpiry (StpBridgeContext *context)
 Topology Change Notification Timer expiry (8.7.6) More...
 
void stpTopologyChangeTimerExpiry (StpBridgeContext *context)
 Topology Change Timer expiry (8.7.7) More...
 
void stpHoldTimerExpiry (StpBridgePort *port)
 Hold Timer expiry (8.7.8) More...
 

Detailed Description

Operation of the protocol.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneSTP Open.

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; either version 2 of the License, or (at your option) any later version.

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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file stp_operation.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   STP_TRACE_LEVEL

Definition at line 32 of file stp_operation.c.

Function Documentation

◆ stpForwardDelayTimerExpiry()

void stpForwardDelayTimerExpiry ( StpBridgePort port)

Forward Delay Timer expiry (8.7.5)

Parameters
[in]portPointer to the bridge port context

Definition at line 218 of file stp_operation.c.

◆ stpHelloTimerExpiry()

void stpHelloTimerExpiry ( StpBridgeContext context)

Hello Timer expiry (8.7.3)

Parameters
[in]contextPointer to the STP bridge context

Definition at line 156 of file stp_operation.c.

◆ stpHoldTimerExpiry()

void stpHoldTimerExpiry ( StpBridgePort port)

Hold Timer expiry (8.7.8)

Parameters
[in]portPointer to the bridge port context

Definition at line 290 of file stp_operation.c.

◆ stpMessageAgeTimerExpiry()

void stpMessageAgeTimerExpiry ( StpBridgePort port)

Message Age Timer expiry (8.7.4)

Parameters
[in]portPointer to the bridge port context

Definition at line 170 of file stp_operation.c.

◆ stpReceivedConfigBpdu()

void stpReceivedConfigBpdu ( StpBridgePort port,
const StpBpdu bpdu 
)

Received Configuration BPDU (8.7.1)

Parameters
[in]portPointer to the bridge port context
[in]bpduPointer to the received Configuration BPDU

Definition at line 52 of file stp_operation.c.

◆ stpReceivedTcnBpdu()

void stpReceivedTcnBpdu ( StpBridgePort port,
const StpBpdu bpdu 
)

Received Topology Change Notification BPDU (8.7.2)

Parameters
[in]portPointer to the bridge port context
[in]bpduPointer to the received TCN BPDU

Definition at line 133 of file stp_operation.c.

◆ stpTcnTimerExpiry()

void stpTcnTimerExpiry ( StpBridgeContext context)

Topology Change Notification Timer expiry (8.7.6)

Parameters
[in]contextPointer to the STP bridge context

Definition at line 262 of file stp_operation.c.

◆ stpTopologyChangeTimerExpiry()

void stpTopologyChangeTimerExpiry ( StpBridgeContext context)

Topology Change Timer expiry (8.7.7)

Parameters
[in]contextPointer to the STP bridge context

Definition at line 276 of file stp_operation.c.