⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pigmrp.h

📁 vt6528芯片交换机API函数和文档运行程序
💻 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:    piipm.h
 *
 * Purpose: IGMP UI related definitions
 *
 * Author:  Freeya Lin
 *
 * Date:    Dec 17, 2003
 *
 */

#ifndef __PIGMRP_H__
#define __PIGMRP_H__

#include "ttype.h"
#include "switch.h"
#include "str.h"
#include "picfgmp.h"
#include "swgmrptb.h"
#include "swpmactb.h"
#include "swsmactb.h"


/*---------------------  Export Classes -----------------------------*/
typedef struct tagSGmrpEntryPage {
    char    azMacAddr[MAC_STRING_LEN+1];      // MAC address of the entry
    UINT16  u16Fid;                           // FID of the entry
    BOOL    bStatic;                        // Static entry
    BOOL    bHiPriDmac;                     // CPU intervention if set
    BOOL    bHiPriSmac;                     // This entry is high priority if set
    UINT8   abyMbrMsk[BYTE_NUM_OF_CFGBUF_BIT_MASK];           // Member port mask
} SGmrpEntryPage;

// Definition of vlan configuration page
typedef struct tagSGMRPPageCfg {
    UINT8           byMode;                                                     // GMRP mode
    UINT16          wValidEntryNum;                                             // Valid table entry number
    UINT16          awValidGrpFidList[SWITCH_GMRP_GRP_NUM];                     // Valid gmrp group id array
    char            astrGrpMacList[SWITCH_GMRP_GRP_NUM*(MAC_STRING_LEN+1)];        // Valid mac addr array
    SGmrpEntryPage  SCurGrp;                                                    // Currently configuring group
} SGMRPPageCfg;


/*---------------------  Export Definitions -------------------------*/
// Define size of GMRP config
#define EEP_SIZE_GMRP_MODE              sizeof(UINT8)
#define EEP_SIZE_GMRP_TBL_ENTRY         sizeof(SGMRPEntry) //TOCHECK
#define EEP_SIZE_PROV_GMRP_CFG          (EEP_SIZE_GMRP_MODE + EEP_SIZE_GMRP_TBL_ENTRY*SWITCH_GMRP_GRP_NUM)

#define EEP_ADDR_GMRP_GROUP             (EEP_ADDR_PROV_GMRP_CFG + EEP_SIZE_GMRP_MODE)

/*---------------------  Export Variables  --------------------------*/

/*---------------------  Export Macros ------------------------------*/

/*---------------------  Export Functions  --------------------------*/




#endif /* __PIGMRP_H__ */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -