📄 piipm.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 __PIIPM_H__
#define __PIIPM_H__
#include "ttype.h"
#if !defined(__SWCFG_H__)
#include "swcfg.h"
#endif
#include "str.h"
#include "picfgmp.h"
#include "swipmtb.h"
/*--------------------- Export Classes -----------------------------*/
typedef struct tagSIpmEntryPage {
char szIp[IP_STRING_LEN+1]; // string IP address of the entry
UINT16 u16Vid; // VID of the entry
BOOL bStatic; // Static entry
BOOL bCpu; // CPU intervention if set
BOOL bDp; // This entry is high priority if set
UINT8 abyMbrMsk[BYTE_NUM_OF_CFGBUF_BIT_MASK]; // Member port mask
} SIpmEntryPage;
// Definition of vlan configuration page
typedef struct tagSIGMPPageCfg {
UINT8 byMode; // IGMP mode
UINT16 wValidEntryNum; // Valid table entry number
UINT16 awValidGrpIdList[SWITCH_IGMP_GRP_NUM]; // Valid vlan group id array
char astrGrpIpList[SWITCH_IGMP_GRP_NUM*(IP_STRING_LEN+1)]; // Valid vlan ip addr array
SIpmEntryPage SCurGrp; // Currently configuring group
} SIGMPPageCfg;
/*--------------------- Export Definitions -------------------------*/
// Define size of VLAN config
#define EEP_SIZE_IGMP_MODE sizeof(UINT8)
#define EEP_SIZE_IGMP_TBL_ENTRY sizeof(SIpmEntry) //TOCHECK
#define EEP_SIZE_PROV_IGMP_CFG (EEP_SIZE_IGMP_MODE + EEP_SIZE_IGMP_TBL_ENTRY*SWITCH_IGMP_GRP_NUM)
#define EEP_ADDR_IGMP_GROUP (EEP_ADDR_PROV_IGMP_CFG + EEP_SIZE_IGMP_MODE)
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* __PIIPM_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -