Include file for hsrPrp_red_hsr.c.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Go to the source code of this file.
Data Structures | |
struct | HSR_TAG |
struct | HSR_SUP_FRAME |
Macros | |
#define | ETHER_TYPE_HSR ( 0x892F ) |
#define | ETHER_TYPE_HSR_SUP ( ETHER_TYPE_RED_SUP ) |
#define | HSR_TAG_SIZE ( 6 ) |
#define | HSR_TAG_PATHID_OFFSET ( 2 ) |
#define | HSR_LAN_A_MAGIC ( 0x00 ) |
#define | HSR_LAN_B_MAGIC ( 0x01 ) |
#define | HSR_TLV1_TYPE ( 23 ) |
#define | HSR_SUP_SIZE ( RED_SUP_SIZE ) |
#define | HSR_SUP_PATH ( RED_SUP_PATH ) |
#define | HSR_SUP_VER ( RED_SUP_VER ) |
#define | HSR_SUP_PAD ( RED_SUP_PAD ) |
Functions | |
void | HsrFrameFill (hsrPrpHandle *, RED_FRAME *pRedFrame, const uint8_t *pFrame, int32_t frameSize) |
void | HsrFrameUpdatePathId (RED_FRAME *pRedFrame, uint16_t pathId) |
Updates PATH ID of a RED_FRAME. More... | |
RED_FRAME * | HsrSupFrameAllocate (hsrPrpHandle *) |
Allocates a RED_FRAME that holds HSR Supervision frame. More... | |
void | HsrSupFrameUpdateSrcAdd (RED_FRAME *pRedFrame, uint8_t *srcAdd) |
Updates Source Address of a HSR Supervision frame. More... | |
void | HsrSupFrameUpdatePathId (RED_FRAME *pRedFrame, uint16_t pathId) |
void | HsrSupFrameUpdateSeqNr (hsrPrpHandle *, RED_FRAME *pRedFrame) |
void | HsrSupFrameIncrementSeqNr (hsrPrpHandle *) |
#define ETHER_TYPE_HSR ( 0x892F ) |
HSR ether type
#define ETHER_TYPE_HSR_SUP ( ETHER_TYPE_RED_SUP ) |
#define HSR_TAG_SIZE ( 6 ) |
HSR tag size
#define HSR_TAG_PATHID_OFFSET ( 2 ) |
Offset from the beginning of HSR tag to the path ID
#define HSR_LAN_A_MAGIC ( 0x00 ) |
HSR LAN A marker
#define HSR_LAN_B_MAGIC ( 0x01 ) |
HSR LAN B marker
#define HSR_TLV1_TYPE ( 23 ) |
HSR node in normal operation
#define HSR_SUP_SIZE ( RED_SUP_SIZE ) |
#define HSR_SUP_PATH ( RED_SUP_PATH ) |
#define HSR_SUP_VER ( RED_SUP_VER ) |
#define HSR_SUP_PAD ( RED_SUP_PAD ) |