📄 swgmrptb.h
字号:
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* All rights reserved.
*
* This software is copyrighted by and is the sole property of
* VIA Networking Technologies, Inc. This software may only be used
* in accordance with the corresponding license agreement. Any unauthorized
* use, duplication, transmission, distribution, or disclosure of this
* software is expressly forbidden.
*
* This software is provided by VIA Networking Technologies, Inc. "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 VIA Networking Technologies, Inc.
* be liable for any direct, indirect, incidental, special, exemplary, or
* consequential damages.
*
*
* File: swgmrptb.h
*
* Purpose: Multicast entry in PMAC/SMAC Table & Multicast port mask Table functions
*
* Author: Henry Lin
*
* Date: May 3, 2005
*
* Functions:
*
* Revision History:
*
*/
#ifndef __SWGMRPTB_H__
#define __SWGMRPTB_H__
#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__SWPMACTB_H__)
#include "swpmactb.h"
#endif
#if !defined(__SWSMACTB_H__)
#include "swsmactb.h"
#endif
/*--------------------- Export Definitions ------------------------*/
struct tagSGMRPEntry {
SMacEntry sMacEntry;
UINT32 u32PortMask;
};
typedef struct tagSGMRPEntry SGMRPEntry;
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros -----------------------------*/
#define IS_PMAC_ENTRY(indx) ( (indx < PMAC_SLOT_NUM) ? TRUE : FALSE)
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
BOOL SWGMRPTB_bGmrpSetEn(BOOL bEnable);
UINT16 SWGMRPTB_wSearchEntry(PUINT8 abyMacAddr, UINT16 u16Fid);
BOOL SWGMRPTB_bGetEntry(UINT16 u16Indx, SGMRPEntry* pSEntry);
BOOL SWGMRPTB_bInsEntry(SGMRPEntry* pSEntry, BOOL bIsOverWrite);
BOOL SWGMRPTB_bDelEntry(PUINT8 abyMacAddr, UINT16 u16Fid);
/* Entry in Secondary MAC table */
BOOL SWGMRPTB_bInsEntryInSMT(SGMRPEntry* pSEntry, BOOL bIsOverWrite);
BOOL SWGMRPTB_bDelEntryInSMT(PUINT8 abyMacAddr, UINT16 u16Fid);
#endif // __SWGMRPTB_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -