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

📄 swmsg.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:    swmsg.h
 *
 * Purpose: Encode of switch API reported messages
 *
 * Author:  Tevin Chen
 *
 * Date:    Jan 08, 2002
 *
 */


#ifndef __SWMSG_H__
#define __SWMSG_H__




/*---------------------  Export Definitions  ------------------------*/
enum {
    // Operation completed successfully
    OP_OK,
    PORT_OP_WRONG_AUTO_ABY,
    PORT_OP_MOD_TRK_DIFF_PORT_CFG,

    // Trunk module error code
    TRK_OP_MBR_NUM_INVALID,
    TRK_OP_MBR_DIFF_VLAN_CFG,
    TRK_OP_MBR_DIFF_8021Q_INGS,
    TRK_OP_MBR_IS_MONITORING,
    TRK_OP_MBR_DIFF_MONITORED,
    TRK_OP_MBR_DIFF_PORT_CFG,
    TRK_OP_MBR_DIFF_RATE_CFG,
    TRK_OP_MBR_DIFF_TRK_CFG,
    TRK_OP_MBR_IS_SECURITY,

    // Sniffer module error code
    SNIFF_OP_DEST_AND_SRC_OVERLAP,
    SNIFF_OP_ALL_PORT_TRUNKED,
    SNIFF_OP_MORE_THAN_ONE_PORT,
    SNIFF_OP_NO_MONITORED_PORT,

    // Rate control module error message
    RATE_OP_BAD_VALUE,

    // Administrator module error code
    ADMIN_OP_DIFF_AGAIN_PASSWORD,

    // IP config
    IPCONF_OP_INVALID_IP,
    IPCONF_OP_INVALID_SUBNET,
    IPCONF_OP_INVALID_GATEWAY,

    // Firmware update
    FWUPDT_OP_INVALID_IP,
    FWUPDT_OP_FAILURE,

    // VLAN module error code
    VLAN_OP_VID_INVALID,
    VLAN_OP_GRP_EXIST,
    VLAN_OP_GRP_NOT_EXIST,
    VLAN_OP_NO_EMPTY_GRP,
    VLAN_OP_DEFAULT_GRP_CANNOT_DEL,
    VLAN_OP_UNTAG_BELONG_OTHER_GRP,
    VLAN_OP_MEMBER_BELONG_THE_SAME_PROTOCOL, //TOCHECK: markout?
    VLAN_OP_NOT_8021Q_MODE,
    VLAN_OP_FOUND_ISO_PORT,

    // IGMP error code
    IGMP_OP_GRP_EXIST,
    IGMP_OP_GRP_NOT_EXIST,
    IGMP_OP_NO_EMPTY_GRP,

    // static mac table error code
    SMAC_OP_GRP_EXIST,
    SMAC_OP_GRP_NOT_EXIST,
    SMAC_OP_NO_EMPTY_GRP,
    SMAC_OP_GRP_EXIST_AS_FLT_SMAC,

    // GMRP error code
    GMRP_OP_GRP_EXIST,
    GMRP_OP_GRP_NOT_EXIST,
    GMRP_OP_NO_EMPTY_GRP,

    // ACL error code
    ACL_OP_PRIORITY_SAME,
    ACL_OP_VLAN_MODE_DISABLED,
    ACL_OP_GID_INVALID,
    ACL_OP_VID_INVALID,
    ACL_OP_GRP_EXIST,
    ACL_OP_GRP_NOT_EXIST,
    ACL_OP_NO_EMPTY_GRP,
    ACL_OP_SIP_INVALID,
    ACL_OP_SIPMSK_INVALID,
    ACL_OP_DIP_INVALID,
    ACL_OP_DIPMSK_INVALID,
    ACL_OP_L4PROTO_VAL_INVALID,
    ACL_OP_TWO_TYPES_OF_L4PROTO_EXIST,
    ACL_OP_TCP_PORT_VAL_INVALID,
    ACL_OP_TWO_TYPES_OF_TCP_PORT_EXIST,
    ACL_OP_UDP_PORT_VAL_INVALID,
    ACL_OP_TWO_TYPES_OF_UDP_PORT_EXIST,
    ACL_OP_L4PROTO_PORT_WITH_IPFRAG,
    ACL_OP_TWO_TYPES_OF_ETHER_TYPE_EXIST,
    ACL_OP_ETHER_TYPE_INVALID,
    ACL_OP_ETHER_TYPE_AS_IPV4,

    //mac address filter error code
    MACFLT_OP_GRP_EXIST,
    MACFLT_OP_GRP_NOT_EXIST,
    MACFLT_OP_NO_EMPTY_GRP,
    MACFLT_OP_NO_EMPTY_SPACE_HW,
    MACFLT_OP_MAC_ADDR_BCST,
    MACFLT_OP_MAC_ADDR_MCST,
    MACFLT_OP_MAC_ADDR_INVALID,
    MACFLT_OP_FID_INVALID,
    MACFLT_OP_GRP_EXIST_AS_SMAC,

    // 8021x error code
    P8021X_OP_PARAM_INVALID,
    P8021X_OP_ERR_RADIUS_INIT,
    P8021X_OP_MEMALLOC_FAIL,
    P8021X_OP_ERR_EMPTY_BUF,
    P8021X_OP_ERR_SMALL_PKT,
    P8021X_OP_ERR_ID_NOT_MATCH,
    P8021X_OP_ERR_AUTH_INIT,
    P8021X_OP_ERR_VALUE_INVALID,
    
    // LACP error code
    LACP_OP_GRP_NOT_EXIST,
    
    // CLI error code
    CLI_OP_CMD_NOT_MATCH,
    CLI_OP_ERR_PARAMS
};

/*---------------------  Export Types  ------------------------------*/

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

/*---------------------  Export Classes  ----------------------------*/

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

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




#endif /* __SWMSG_H__ */


⌨️ 快捷键说明

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