📄 piaclgrp.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: piaclgrp.h
*
* Purpose: ACL group setting UI callback functions
*
* Author: Tim Feng
*
* Date: DEC 06, 2005
*
*/
#ifndef _PIACLGRP_H
#define _PIACLGRP_H
#include "ttype.h"
#include "piacl.h"
/*--------------------- Export Classes -----------------------------*/
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions/Macros -------------------*/
// Get a ACL group,and the group is in flash struct mode
UINT8 PIACL_byGetGrp (UINT8 u8GrpId,SACLGrpEepCfg *pSACLGrpEepCfg);
// Get Current ACL Group by UI
UINT8 PIACL_byGetCurPageGrp(SACLPageCfg *pSPageBuf);
// Insert an ACL group
UINT8 PIACL_byInsGrp(SACLPageCfg *pSPageBuf);
// Edit an ACL group
UINT8 PIACL_byEditGrp(SACLPageCfg *pSPageBuf);
// Delete an ACL group
UINT8 PIACL_byDelGrp(SACLPageCfg *pSPageBuf);
// Get ACL groups from EEPROM and set into page buf
void PIACL_vInitPage (SACLPageCfg *pSPageBuf, BOOL bIsAllType, BOOL bIsIpv4);
// Set default vlan mode into EEPROM
void PIACL_vSetEepDefault (SACLPageCfg *pSPageBuf, BOOL bWriteDefault);
//Set hardware table from eeprom when switch booting
void PIACL_vSetHwFromEep(SACLPageCfg *pSPageBuf);
//Trans Configuration From EEP to Page
void PIACL_vTransCfgFromEepToPage(SACLGrpPageCfg *pSGrpPageBuf, SACLGrpEepCfg* pSGrpEepBuf);
//Trans Configuration From Page to EEP and HW
UINT8 PIACL_byTransCfgFromPageToEepHw(SACLGrpEepCfg* pSGrpEepBuf, SACLGrpPageCfg *pSGrpPageBuf);
extern UINT8 g_abyL4ProtoVal[];
extern UINT16 g_awTcpDstPortVal[];
extern UINT16 g_awUdpDstPortVal[];
extern UINT16 g_awEthProtoVal[];
#endif /* __PIACLGRP_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -