亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ixethdb.h

?? uboot的源碼,包括了常見的處理器平臺
?? H
?? 第 1 頁 / 共 5 頁
字號:
/** @file IxEthDB.h * * @brief this file contains the public API of @ref IxEthDB component * *  * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``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 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice -- * */ #ifndef IxEthDB_H#define IxEthDB_H#include <IxOsBuffMgt.h>#include <IxTypes.h>/** * @defgroup IxEthDB IXP400 Ethernet Database (IxEthDB) API * * @brief ethDB is a library that does provides a MAC address database learning/filtering capability * *@{ */#define INLINE __inline__#define IX_ETH_DB_PRIVATE PRIVATE /* imported from IxTypes.h */#define IX_ETH_DB_PUBLIC PUBLIC/** * @brief port ID => message handler NPE id conversion (0 => NPE_B, 1 => NPE_C) */#define IX_ETH_DB_PORT_ID_TO_NPE(id) (id == 0 ? 1 : (id == 1 ? 2 : (id == 2 ? 0 : -1)))/** * @def IX_ETH_DB_NPE_TO_PORT_ID(npe) * @brief message handler NPE id => port ID conversion (NPE_B => 0, NPE_C => 1) */#define IX_ETH_DB_NPE_TO_PORT_ID(npe) (npe == 0 ? 2 : (npe == 1 ? 0 : (npe == 2 ? 1 : -1)))/* temporary define - won't work for Azusa */#define IX_ETH_DB_PORT_ID_TO_NPE_LOGICAL_ID(id) (IX_ETH_DB_PORT_ID_TO_NPE(id) << 4)#define IX_ETH_DB_NPE_LOGICAL_ID_TO_PORT_ID(id) (IX_ETH_DB_NPE_TO_PORT_ID(id >> 4))/** * @def IX_IEEE803_MAC_ADDRESS_SIZE * @brief The size of the MAC address */#define IX_IEEE803_MAC_ADDRESS_SIZE (6)/** * @def IX_IEEE802_1Q_QOS_PRIORITY_COUNT * @brief Number of QoS priorities defined by IEEE802.1Q */#define IX_IEEE802_1Q_QOS_PRIORITY_COUNT (8)/** * @enum IxEthDBStatus * @brief Ethernet Database API return values */typedef enum /* IxEthDBStatus */{  IX_ETH_DB_SUCCESS = IX_SUCCESS,   /**< Success */  IX_ETH_DB_FAIL = IX_FAIL,         /**< Failure */  IX_ETH_DB_INVALID_PORT,           /**< Invalid port */  IX_ETH_DB_PORT_UNINITIALIZED,     /**< Port not initialized */  IX_ETH_DB_MAC_UNINITIALIZED,      /**< MAC not initialized */  IX_ETH_DB_INVALID_ARG,            /**< Invalid argument */  IX_ETH_DB_NO_SUCH_ADDR,           /**< Address not found for search or delete operations */  IX_ETH_DB_NOMEM,                  /**< Learning database memory full */  IX_ETH_DB_BUSY,                   /**< Learning database cannot complete operation, access temporarily blocked */  IX_ETH_DB_END,                    /**< Database browser passed the end of the record set */  IX_ETH_DB_INVALID_VLAN,           /**< Invalid VLAN ID (valid range is 0..4094, 0 signifies no VLAN membership, used for priority tagged frames) */  IX_ETH_DB_INVALID_PRIORITY,       /**< Invalid QoS priority/traffic class (valid range for QoS priority is 0..7, valid range for traffic class depends on run-time configuration) */  IX_ETH_DB_NO_PERMISSION,          /**< No permission for attempted operation */  IX_ETH_DB_FEATURE_UNAVAILABLE,    /**< Feature not available (or not enabled) */  IX_ETH_DB_INVALID_KEY,            /**< Invalid search key */  IX_ETH_DB_INVALID_RECORD_TYPE     /**< Invalid record type */} IxEthDBStatus;    /** @brief VLAN ID type, valid range is 0..4094, 0 signifying no VLAN membership */typedef UINT32 IxEthDBVlanId;/** @brief 802.1Q VLAN tag, contains 3 bits user priority, 1 bit CFI, 12 bits VLAN ID */typedef UINT32 IxEthDBVlanTag;/** @brief QoS priority/traffic class type, valid range is 0..7, 0 being the lowest */typedef UINT32 IxEthDBPriority;/** @brief Priority mapping table; 0..7 QoS priorities used to index, table contains traffic classes */typedef UINT8 IxEthDBPriorityTable[8];/** @brief A 4096 bit array used to map the complete VLAN ID range */typedef UINT8 IxEthDBVlanSet[512];#define IX_ETH_DB_802_1Q_VLAN_MASK (0xFFF)#define IX_ETH_DB_802_1Q_QOS_MASK  (0x7)#define IX_ETH_DB_802_1Q_MAX_VLAN_ID (0xFFE)/** * @def IX_ETH_DB_SET_VLAN_ID * @brief returns the given 802.1Q tag with the VLAN ID field substituted with the given VLAN ID * * This macro is used to change the VLAN ID in a 802.1Q tag. * * Example:  *  *  tag = IX_ETH_DB_SET_VLAN_ID(tag, 32) * * inserts the VLAN ID "32" in the given tag. */#define IX_ETH_DB_SET_VLAN_ID(vlanTag, vlanID) (((vlanTag) & 0xF000) | ((vlanID) & IX_ETH_DB_802_1Q_VLAN_MASK))/*** @def IX_ETH_DB_GET_VLAN_ID* @brief returns the VLAN ID from the given 802.1Q tag*/#define IX_ETH_DB_GET_VLAN_ID(vlanTag) ((vlanTag) & IX_ETH_DB_802_1Q_VLAN_MASK)#define IX_ETH_DB_GET_QOS_PRIORITY(vlanTag) (((vlanTag) >> 13) & IX_ETH_DB_802_1Q_QOS_MASK)#define IX_ETH_DB_SET_QOS_PRIORITY(vlanTag, priority) (((vlanTag) & 0x1FFF) | (((priority) & IX_ETH_DB_802_1Q_QOS_MASK) << 13))#define IX_ETH_DB_CHECK_VLAN_TAG(vlanTag) { if(((vlanTag & 0xFFFF0000) != 0) || (IX_ETH_DB_GET_VLAN_ID(vlanTag) > 4094)) return IX_ETH_DB_INVALID_VLAN; }#define IX_ETH_DB_CHECK_VLAN_ID(vlanId) { if (vlanId > IX_ETH_DB_802_1Q_MAX_VLAN_ID) return IX_ETH_DB_INVALID_VLAN; }#define IX_IEEE802_1Q_VLAN_TPID (0x8100)    typedef enum{  IX_ETH_DB_UNTAGGED_FRAMES        = 0x1, /**< Accepts untagged frames */  IX_ETH_DB_VLAN_TAGGED_FRAMES     = 0x2, /**< Accepts tagged frames */  IX_ETH_DB_PRIORITY_TAGGED_FRAMES = 0x4, /**< Accepts tagged frames with VLAN ID set to 0 (no VLAN membership) */  IX_ETH_DB_ACCEPT_ALL_FRAMES      =       IX_ETH_DB_UNTAGGED_FRAMES | IX_ETH_DB_VLAN_TAGGED_FRAMES /**< Accepts all the frames */} IxEthDBFrameFilter;typedef enum{  IX_ETH_DB_PASS_THROUGH = 0x1, /**< Leave frame as-is */  IX_ETH_DB_ADD_TAG      = 0x2, /**< Add default port VLAN tag */  IX_ETH_DB_REMOVE_TAG   = 0x3  /**< Remove VLAN tag from frame */} IxEthDBTaggingAction;typedef enum{  IX_ETH_DB_FIREWALL_WHITE_LIST = 0x1,  /**< Firewall operates in white-list mode (MAC address based admission) */  IX_ETH_DB_FIREWALL_BLACK_LIST = 0x2   /**< Firewall operates in black-list mode (MAC address based blocking) */} IxEthDBFirewallMode;  typedef enum{  IX_ETH_DB_FILTERING_RECORD        = 0x01, /**< <table><caption> Filtering record </caption>                                              *      <tr><td> MAC address <td> static/dynamic type <td> age                                              *   </table>                                              */  IX_ETH_DB_FILTERING_VLAN_RECORD   = 0x02, /**< <table><caption> VLAN-enabled filtering record </caption>                                             *      <tr><td> MAC address <td> static/dynamic type <td> age <td> 802.1Q tag                                              *   </table>                                              */  IX_ETH_DB_WIFI_RECORD             = 0x04, /**< <table><caption> WiFi header conversion record </caption>                                             *      <tr><td> MAC address <td> optional gateway MAC address <td>                                              *   </table>                                             */  IX_ETH_DB_FIREWALL_RECORD         = 0x08, /**< <table><caption> Firewall record </caption>                                             *      <tr><td> MAC address                                              *   </table>                                             */  IX_ETH_DB_GATEWAY_RECORD          = 0x10, /**< <i>For internal use only</i> */  IX_ETH_DB_MAX_RECORD_TYPE_INDEX   = 0x10, /**< <i>For internal use only</i> */  IX_ETH_DB_NO_RECORD_TYPE          = 0,    /**< None of the registered record types */  IX_ETH_DB_ALL_FILTERING_RECORDS   = IX_ETH_DB_FILTERING_RECORD | IX_ETH_DB_FILTERING_VLAN_RECORD, /**< All the filtering records */  IX_ETH_DB_ALL_RECORD_TYPES        = IX_ETH_DB_FILTERING_RECORD | IX_ETH_DB_FILTERING_VLAN_RECORD |      IX_ETH_DB_WIFI_RECORD | IX_ETH_DB_FIREWALL_RECORD /**< All the record types registered within EthDB */    } IxEthDBRecordType;  typedef enum{  IX_ETH_DB_LEARNING                = 0x01, /**< Learning feature; enables EthDB to learn MAC address (filtering) records, including 802.1Q enabled records */  IX_ETH_DB_FILTERING               = 0x02, /**< Filtering feature; enables EthDB to communicate with the NPEs for downloading filtering information in the NPEs; depends on the learning feature */  IX_ETH_DB_VLAN_QOS                = 0x04, /**< VLAN/QoS feature; enables EthDB to configure NPEs to operate in VLAN/QoS aware modes */  IX_ETH_DB_FIREWALL                = 0x08, /**< Firewall feature; enables EthDB to configure NPEs to operate in firewall mode, using white/black address lists */  IX_ETH_DB_SPANNING_TREE_PROTOCOL  = 0x10, /**< Spanning tree protocol feature; enables EthDB to configure the NPEs as STP nodes */  IX_ETH_DB_WIFI_HEADER_CONVERSION  = 0x20  /**< WiFi 802.3 to 802.11 header conversion feature; enables EthDB to handle WiFi conversion data */} IxEthDBFeature;  typedef UINT32 IxEthDBProperty;  /**< Property ID type */typedef enum{  IX_ETH_DB_INTEGER_PROPERTY  = 0x1, /**< 4 byte unsigned integer type */  IX_ETH_DB_STRING_PROPERTY   = 0x2, /**< NULL-terminated string type of maximum 255 characters (including the terminator) */  IX_ETH_DB_MAC_ADDR_PROPERTY = 0x3, /**< 6 byte MAC address type */  IX_ETH_DB_BOOL_PROPERTY     = 0x4  /**< 4 byte boolean type; can contain only TRUE and FALSE values */} IxEthDBPropertyType;/* list of supported properties for the IX_ETH_DB_VLAN_QOS feature */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_COUNT_PROPERTY   (0x01)     /**< Property identifying number the supported number of traffic classes */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_0_RX_QUEUE_PROPERTY (0x10)  /**< Rx queue assigned to traffic class 0 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_1_RX_QUEUE_PROPERTY (0x11)  /**< Rx queue assigned to traffic class 1 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_2_RX_QUEUE_PROPERTY (0x12)  /**< Rx queue assigned to traffic class 2 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_3_RX_QUEUE_PROPERTY (0x13)  /**< Rx queue assigned to traffic class 3 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_4_RX_QUEUE_PROPERTY (0x14)  /**< Rx queue assigned to traffic class 4 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_5_RX_QUEUE_PROPERTY (0x15)  /**< Rx queue assigned to traffic class 5 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_6_RX_QUEUE_PROPERTY (0x16)  /**< Rx queue assigned to traffic class 6 */#define IX_ETH_DB_QOS_TRAFFIC_CLASS_7_RX_QUEUE_PROPERTY (0x17)  /**< Rx queue assigned to traffic class 7 *//* private property used by EthAcc to indicate queue configuration complete */#define IX_ETH_DB_QOS_QUEUE_CONFIGURATION_COMPLETE (0x18)      /** * * @brief The IEEE 802.3 Ethernet MAC address structure. *  * The data should be packed with bytes xx:xx:xx:xx:xx:xx  * * @note The data must be packed in network byte order. */typedef struct  {   UINT8 macAddress[IX_IEEE803_MAC_ADDRESS_SIZE];} IxEthDBMacAddr;/** * @ingroup IxEthDB * * @brief Definition of an IXP400 port. */typedef UINT32 IxEthDBPortId;/** * @ingroup IxEthDB * * @brief Port dependency map definition */typedef UINT8 IxEthDBPortMap[32];    /** * @ingroup IxEthDB * * @fn IxEthDBStatus ixEthDBInit(void) * * @brief Initializes the Ethernet learning/filtering database * * @note calling this function multiple times does not constitute an error; * redundant calls will be ignored, returning IX_ETH_DB_SUCCESS * * @retval IX_ETH_DB_SUCCESS initialization was successful * @retval IX_ETH_DB_FAIL initialization failed (OS error) */IX_ETH_DB_PUBLIC IxEthDBStatus ixEthDBInit(void); /** * @ingroup IxEthDB

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品区一区二区| 亚洲一区二区av在线| 亚洲精品国产a久久久久久 | 亚洲国产日韩a在线播放| 久久精品国产在热久久| 在线视频中文字幕一区二区| 久久五月婷婷丁香社区| 丝瓜av网站精品一区二区| 成人国产亚洲欧美成人综合网| 欧美一区二区精美| 伊人开心综合网| 成人美女在线观看| 欧美精品一区二区在线观看| 亚瑟在线精品视频| 色噜噜狠狠一区二区三区果冻| 久久综合国产精品| 久久黄色级2电影| 91精品免费在线| 亚洲国产日韩综合久久精品| 91视频观看视频| 日韩美女久久久| 成人av影视在线观看| 久久精品夜色噜噜亚洲a∨| 美女一区二区三区| 欧美一级艳片视频免费观看| 亚洲成人久久影院| 欧美日韩亚洲高清一区二区| 亚洲综合丝袜美腿| 成人精品视频.| 中文幕一区二区三区久久蜜桃| 国产一区二区在线电影| 欧美tk丨vk视频| 激情欧美一区二区| 精品国产乱码久久久久久闺蜜| 日韩电影在线看| 日韩精品中文字幕一区| 久久国产生活片100| 欧美成人精品3d动漫h| 久国产精品韩国三级视频| 欧美一区二区精品在线| 蜜臀a∨国产成人精品| 日韩免费高清电影| 国产精品一区一区三区| 国产精品久久久久aaaa| 北条麻妃国产九九精品视频| 1000部国产精品成人观看| 成人免费毛片片v| 亚洲综合一区二区三区| 91精品视频网| 国产精品123| 亚洲欧美激情在线| 欧美精品在欧美一区二区少妇| 日本不卡视频在线| 国产网站一区二区| 在线观看三级视频欧美| 蜜桃av一区二区| 国产片一区二区| 欧美三区在线观看| 韩国三级在线一区| 中文字幕二三区不卡| 欧美三级午夜理伦三级中视频| 日韩高清一区二区| 国产三级三级三级精品8ⅰ区| 一本久道久久综合中文字幕 | 免费看日韩a级影片| 久久久综合视频| 99re8在线精品视频免费播放| 午夜伦欧美伦电影理论片| 久久久亚洲午夜电影| 91久久精品国产91性色tv | 99久久精品费精品国产一区二区| 亚洲一线二线三线视频| 精品噜噜噜噜久久久久久久久试看 | 成人av免费网站| 午夜精品成人在线视频| 国产精品网曝门| 91精品国产91综合久久蜜臀| 成人中文字幕在线| 男女视频一区二区| 玉米视频成人免费看| xfplay精品久久| 欧美午夜宅男影院| 成人黄色片在线观看| 老司机精品视频一区二区三区| 成人欧美一区二区三区白人| 日韩你懂的在线播放| 欧美中文字幕久久| 91在线观看视频| 高清在线不卡av| 久久精品国产成人一区二区三区| 又紧又大又爽精品一区二区| 久久久精品蜜桃| 日韩美女视频一区二区在线观看| 91国偷自产一区二区三区成为亚洲经典| 国模少妇一区二区三区| 天堂一区二区在线免费观看| 亚洲视频一区二区在线观看| 久久精品免费在线观看| 日韩欧美123| 91精品在线观看入口| 欧美天堂亚洲电影院在线播放| jiyouzz国产精品久久| 国产一区二区电影| 国产一区二区在线电影| 激情综合色丁香一区二区| 天天综合色天天综合色h| 一区二区三区免费观看| 亚洲四区在线观看| 亚洲日本va午夜在线影院| 国产精品国产三级国产专播品爱网| 久久丝袜美腿综合| 久久精品人人爽人人爽| 久久精品人人做人人综合| 久久精品夜夜夜夜久久| 欧美激情一区三区| 国产精品久久久一区麻豆最新章节| 国产欧美日韩激情| 国产精品人妖ts系列视频| 中文字幕中文乱码欧美一区二区| 欧美激情中文字幕一区二区| 国产精品久久午夜夜伦鲁鲁| 国产精品女人毛片| 国产精品久久久久精k8| 一区二区三区波多野结衣在线观看| 椎名由奈av一区二区三区| 亚洲制服丝袜一区| 丝袜美腿亚洲色图| 久久精品99国产精品日本| 国产揄拍国内精品对白| 不卡一卡二卡三乱码免费网站 | 精品一区二区在线免费观看| 九九九精品视频| 国产经典欧美精品| 色一情一乱一乱一91av| 欧美日韩一区二区三区视频| 337p亚洲精品色噜噜狠狠| 337p粉嫩大胆噜噜噜噜噜91av| 久久久精品国产99久久精品芒果| 久久久精品影视| 亚洲综合丝袜美腿| 精品无人码麻豆乱码1区2区 | 依依成人综合视频| 日韩av午夜在线观看| 国产呦精品一区二区三区网站| 成人短视频下载| 欧美精品久久一区| 国产精品女人毛片| 日日夜夜免费精品| 成人爱爱电影网址| 欧美人妇做爰xxxⅹ性高电影| 精品少妇一区二区三区| 亚洲欧洲av在线| 日本不卡在线视频| caoporm超碰国产精品| 欧美乱熟臀69xxxxxx| 久久久久久久久久电影| 一区二区三区欧美日| 国产毛片精品一区| 欧美精品乱码久久久久久按摩 | 不卡视频在线观看| 欧美一区二区三区不卡| 日韩毛片在线免费观看| 激情综合色丁香一区二区| 日本大香伊一区二区三区| 久久亚洲综合色一区二区三区| 亚洲高清免费视频| 96av麻豆蜜桃一区二区| 欧美电影免费观看完整版| 一区二区久久久久| 成人免费视频视频| 久久久久久久久久久久久久久99 | 一色屋精品亚洲香蕉网站| 午夜精品久久久久久久蜜桃app| 成人免费毛片高清视频| 26uuu久久综合| 日韩精品1区2区3区| 91黄色免费版| 欧美韩日一区二区三区四区| 久久疯狂做爰流白浆xx| 欧美日本视频在线| 亚洲无线码一区二区三区| 成人午夜激情影院| 久久网站热最新地址| 蜜桃在线一区二区三区| 91精品国产综合久久小美女| 亚洲精品综合在线| 无吗不卡中文字幕| 欧美亚洲动漫另类| 一区二区三区蜜桃| 在线观看91精品国产入口| 综合久久综合久久| a4yy欧美一区二区三区| 中文字幕日本乱码精品影院| 成人精品一区二区三区中文字幕 | 国产一区91精品张津瑜| 久久综合久久综合九色| 久久99精品国产麻豆婷婷洗澡| 欧美一区二区三区婷婷月色| 三级影片在线观看欧美日韩一区二区 | 久久综合av免费|