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

📄 pidef.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:    pidef.h
 *
 * Purpose: System LED order and default configuration definition
 *
 * Author:  Tevin Chen
 *
 * Date:    Jan 08, 2002
 *
 */


#ifndef __PIDEF_H__
#define __PIDEF_H__

#include "ttype.h"
#include "swport.h"
#include "swvlantb.h"
#include "swqos.h"
#include "pimisc.h"

#include "swstp.h"
#include "swfwd.h"




/*---------------------  General Definitions -------------------------*/
// version information
#define EEP_VALUE_CONTENT_VER           135         // Write default if the value in eeprom is different
// Define for EEPROM signature and firmware version
#define EEP_VALUE_SIGNATURE             0x73

/*---------------------  Per-Vendor Definitions ----------------------*/
#define UI_SWITCH_PORT_NUM              SWITCH_PORT_NUM
#define UI_SWITCH_MEGA_PORT_NUM         SWITCH_MEGA_PORT_NUM
#define UI_SWITCH_TRUNKABLE_PORT_NUM    SWITCH_TRUNKABLE_PORT_NUM

#define STRING_LOGIN_TITLE              "Smart 24 + 2 Port Standalone Switch"

// Define default username/password and backdoor pair
#define DEFAULT_ADM_USERNAME            "admin"
#define DEFAULT_ADM_PASSWORD            "admin"
#define BACKDOOR_ADM_USERNAME           "debug"
#define BACKDOOR_ADM_PASSWORD           "debug"
#define SETMAC_ADM_USERNAME             "setmac"
#define SETMAC_ADM_PASSWORD             "^%$#@!"    // shift-654321

// Port Control module default configuration
#define DEFAULT_PORT_ENABLE             TRUE
#define DEFAULT_PORT_AUTO               TRUE
#define DEFAULT_PORT_SPD_DPX            PORT_SPDPX_AUTO
#define DEFAULT_FLOW_CONTROL            TRUE

// VLAN module default configuration
#define DEFAULT_VLAN_INGRS_FILTER_CFG   0x55        // VLAN_INGRS_FILTER_NOTMBR => 0x01
#define DEFAULT_VLAN_MODE               VLAN_MODE_8021Q

// QoS  module default configuration
#define DEFAULT_QOS_MODE                QOS_WRR
#define DEFAULT_STATIC_PRIORITY         QOS_PORT_PRIORI_DISABLE
#define DEFAULT_8021P_MAP               0xFA50

// Misc module default configuration
#define DEFAULT_BSF_MODE                BSF_MODE_OFF
#define DEFAULT_RETRY_FOREVER           TRUE
#define DEFAULT_AUTO_AGING              AUTO_AGING_300S
#define DEFAULT_MAC_HASH_MODE           HASH_CRC
#define DEFAULT_AUTO_LOGOUT             AUTO_LOGOUT_5MIN
#define DEFAULT_WEB_AUTO_LOGOUT         WEB_AUTO_LOGOUT_5MIN


// IP configuration
#define DEFAULT_IP_ADDR                 0xC0A80101    // "192.168.1.1"
#define DEFAULT_SUBNET                  0xFFFFFF00    // "255.255.255.0"
#define DEFAULT_GATEWAY                 0xC0A801FE    // "192.168.1.254"

// Firmware update configuration
#define DEFAULT_TFTP_SRV_IP_ADDR        0xC0A801FE    // "192.168.1.254"
#define DEFAULT_TFTP_FILENAME           "image.bin"


// Protocol default configuration
#define DEFAULT_STP_MODE                STP_MODE_DISABLE
#define DEFAULT_STP_PORT_STATE          STP_STATE_FORWARDING

#define DEFAULT_GVRP_MODE               FALSE
#define DEFAULT_IPM_MODE                FALSE
#define DEFAULT_GMRP_MODE               FALSE
#define DEFAULT_LACP_MODE               FALSE




#endif /* __PIDEF_H__ */


⌨️ 快捷键说明

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