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

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

?? ixethdbwifi.c

?? 針對OpenJtag通用調試板的Uboot程序
?? C
字號:
/** * @file IxEthDBAPI.c * * @brief Implementation of the public API *  * @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 -- */#include "IxEthDB_p.h"/* forward prototypes */IX_ETH_DB_PUBLICMacTreeNode *ixEthDBGatewaySelect(MacTreeNode *stations);/** * @brief sets the BBSID value for the WiFi header conversion feature * * @param portID ID of the port * @param bbsid pointer to the 6-byte BBSID value * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed successfully * or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiBBSIDSet(IxEthDBPortId portID, IxEthDBMacAddr *bbsid){    IxNpeMhMessage message;    IX_STATUS result;        IX_ETH_DB_CHECK_PORT(portID);        IX_ETH_DB_CHECK_SINGLE_NPE(portID);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);     IX_ETH_DB_CHECK_REFERENCE(bbsid);        memcpy(ixEthDBPortInfo[portID].bbsid, bbsid, sizeof (IxEthDBMacAddr));    FILL_SETBBSID_MSG(message, portID, bbsid);    IX_ETHDB_SEND_NPE_MSG(IX_ETH_DB_PORT_ID_TO_NPE(portID), message, result);        return result;}/** * @brief updates the Frame Control and Duration/ID WiFi header * conversion parameters in an NPE * * @param portID ID of the port * * This function will send a message to the NPE updating the  * frame conversion parameters for 802.3 => 802.11 header conversion. * * @return IX_ETH_DB_SUCCESS if the operation completed successfully * or IX_ETH_DB_FAIL otherwise * * @internal */IX_ETH_DB_PRIVATEIxEthDBStatus ixEthDBWiFiFrameControlDurationIDUpdate(IxEthDBPortId portID){    IxNpeMhMessage message;    IX_STATUS result;    FILL_SETFRAMECONTROLDURATIONID(message, portID, ixEthDBPortInfo[portID].frameControlDurationID);        IX_ETHDB_SEND_NPE_MSG(IX_ETH_DB_PORT_ID_TO_NPE(portID), message, result);        return result;}/** * @brief sets the Duration/ID WiFi frame header conversion parameter * * @param portID ID of the port * @param durationID 16-bit value containing the new Duration/ID parameter * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed successfully * or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiDurationIDSet(IxEthDBPortId portID, UINT16 durationID){    IX_ETH_DB_CHECK_PORT(portID);        IX_ETH_DB_CHECK_SINGLE_NPE(portID);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);    ixEthDBPortInfo[portID].frameControlDurationID = (ixEthDBPortInfo[portID].frameControlDurationID & 0xFFFF0000) | durationID;        return ixEthDBWiFiFrameControlDurationIDUpdate(portID);}/** * @brief sets the Frame Control WiFi frame header conversion parameter * * @param portID ID of the port * @param durationID 16-bit value containing the new Frame Control parameter * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed successfully * or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiFrameControlSet(IxEthDBPortId portID, UINT16 frameControl){    IX_ETH_DB_CHECK_PORT(portID);        IX_ETH_DB_CHECK_SINGLE_NPE(portID);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);    ixEthDBPortInfo[portID].frameControlDurationID = (ixEthDBPortInfo[portID].frameControlDurationID & 0xFFFF) | (frameControl << 16);         return ixEthDBWiFiFrameControlDurationIDUpdate(portID);}/** * @brief removes a WiFi header conversion record * * @param portID ID of the port * @param macAddr MAC address of the record to remove * * Note that this function is documented in the main * component header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiEntryRemove(IxEthDBPortId portID, IxEthDBMacAddr *macAddr){    MacDescriptor recordTemplate;        IX_ETH_DB_CHECK_PORT(portID);        IX_ETH_DB_CHECK_SINGLE_NPE(portID);        IX_ETH_DB_CHECK_REFERENCE(macAddr);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);        memcpy(recordTemplate.macAddress, macAddr, sizeof (IxEthDBMacAddr));        recordTemplate.type   = IX_ETH_DB_WIFI_RECORD;    recordTemplate.portID = portID;        return ixEthDBRemove(&recordTemplate, NULL);}/** * @brief adds a WiFi header conversion record * * @param portID ID of the port * @param macAddr MAC address of the record to add * @param gatewayMacAddr address of the gateway (or * NULL if this is a station record) * * This function adds a record of type AP_TO_AP (gateway is not NULL) * or AP_TO_STA (gateway is NULL) in the main database as a  * WiFi header conversion record. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise * * @internal */IX_ETH_DB_PRIVATEIxEthDBStatus ixEthDBWiFiEntryAdd(IxEthDBPortId portID, IxEthDBMacAddr *macAddr, IxEthDBMacAddr *gatewayMacAddr){    MacDescriptor recordTemplate;    IX_ETH_DB_CHECK_PORT(portID);    IX_ETH_DB_CHECK_SINGLE_NPE(portID);    IX_ETH_DB_CHECK_REFERENCE(macAddr);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);    memcpy(recordTemplate.macAddress, macAddr, sizeof (IxEthDBMacAddr));        recordTemplate.type   = IX_ETH_DB_WIFI_RECORD;    recordTemplate.portID = portID;        if (gatewayMacAddr != NULL)    {        memcpy(recordTemplate.recordData.wifiData.gwMacAddress, gatewayMacAddr, sizeof (IxEthDBMacAddr));                recordTemplate.recordData.wifiData.type = IX_ETH_DB_WIFI_AP_TO_AP;    }    else    {        memset(recordTemplate.recordData.wifiData.gwMacAddress, 0, sizeof (IxEthDBMacAddr));        recordTemplate.recordData.wifiData.type = IX_ETH_DB_WIFI_AP_TO_STA;    }        return ixEthDBAdd(&recordTemplate, NULL);}/** * @brief adds a WiFi header conversion record * * @param portID ID of the port * @param macAddr MAC address of the record to add * @param gatewayMacAddr address of the gateway  * * This function adds a record of type AP_TO_AP * in the main database as a WiFi header conversion record. * * This is simply a wrapper over @ref ixEthDBWiFiEntryAdd(). * * Note that this function is documented in the main * component header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiAccessPointEntryAdd(IxEthDBPortId portID, IxEthDBMacAddr *macAddr, IxEthDBMacAddr *gatewayMacAddr){    IX_ETH_DB_CHECK_REFERENCE(gatewayMacAddr);    return ixEthDBWiFiEntryAdd(portID, macAddr, gatewayMacAddr);}/** * @brief adds a WiFi header conversion record * * @param portID ID of the port * @param macAddr MAC address of the record to add * * This function adds a record of type AP_TO_STA * in the main database as a WiFi header conversion record. * * This is simply a wrapper over @ref ixEthDBWiFiEntryAdd(). * * Note that this function is documented in the main * component header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiStationEntryAdd(IxEthDBPortId portID, IxEthDBMacAddr *macAddr){    return ixEthDBWiFiEntryAdd(portID, macAddr, NULL);}/** * @brief selects a set of gateways from a tree of  * WiFi header conversion records * * @param stations binary tree containing pointers to WiFi header * conversion records * * This function browses through the input binary tree, identifies * records of type AP_TO_AP, clones these records and appends them * to a vine (a single right-branch binary tree) which is returned * as result. A maximum of MAX_GW_SIZE entries containing gateways * will be cloned from the original tree. * * @return vine (linear binary tree) containing record * clones of AP_TO_AP type, which have a gateway field * * @internal */IX_ETH_DB_PUBLICMacTreeNode *ixEthDBGatewaySelect(MacTreeNode *stations){    MacTreeNodeStack *stack;    MacTreeNode *gateways, *insertionPlace;    UINT32 gwIndex = 1; /* skip the empty root */        if (stations == NULL)    {        return NULL;    }    stack = ixOsalCacheDmaMalloc(sizeof (MacTreeNodeStack));    if (stack == NULL)    {        ERROR_LOG("DB: (WiFi) failed to allocate the node stack for gateway tree linearization, out of memory?\n");        return NULL;    }        /* initialize root node */    gateways = insertionPlace = NULL;            /* start browsing the station tree */    NODE_STACK_INIT(stack);        /* initialize stack by pushing the tree root at offset 0 */    NODE_STACK_PUSH(stack, stations, 0);        while (NODE_STACK_NONEMPTY(stack))    {        MacTreeNode *node;        UINT32 offset;               NODE_STACK_POP(stack, node, offset);        /* we can store maximum 31 (32 total, 1 empty root) entries in the gateway tree */        if (offset > (MAX_GW_SIZE - 1)) break;                /* check if this record has a gateway address */        if (node->descriptor != NULL && node->descriptor->recordData.wifiData.type == IX_ETH_DB_WIFI_AP_TO_AP)        {            /* found a record, create an insertion place */            if (insertionPlace != NULL)            {                insertionPlace->right = ixEthDBAllocMacTreeNode();                insertionPlace        = insertionPlace->right;            }            else            {                gateways       = ixEthDBAllocMacTreeNode();                insertionPlace = gateways;            }            if (insertionPlace == NULL)            {                /* no nodes left, bail out with what we have */                ixOsalCacheDmaFree(stack);                return gateways;            }                        /* clone the original record for the gateway tree */            insertionPlace->descriptor = ixEthDBCloneMacDescriptor(node->descriptor);                        /* insert and update the offset in the original record */            node->descriptor->recordData.wifiData.gwAddressIndex = gwIndex++;        }                /* browse the tree */        if (node->left != NULL)        {            NODE_STACK_PUSH(stack, node->left, LEFT_CHILD_OFFSET(offset));        }        if (node->right != NULL)        {            NODE_STACK_PUSH(stack, node->right, RIGHT_CHILD_OFFSET(offset));        }    }        ixOsalCacheDmaFree(stack);    return gateways;    }/** * @brief downloads the WiFi header conversion table to an NPE * * @param portID ID of the port * * This function prepares the WiFi header conversion tables and * downloads them to the specified NPE port. * * The header conversion tables consist in the main table of * addresses and the secondary table of gateways. AP_TO_AP records * from the first table contain index fields into the second table * for gateway selection. * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed successfully * or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBWiFiConversionTableDownload(IxEthDBPortId portID){    IxEthDBPortMap query;    MacTreeNode *stations = NULL, *gateways = NULL, *gateway = NULL;    IxNpeMhMessage message;    PortInfo *portInfo;    IX_STATUS result;    IX_ETH_DB_CHECK_PORT(portID);    IX_ETH_DB_CHECK_SINGLE_NPE(portID);        IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_WIFI_HEADER_CONVERSION);    portInfo = &ixEthDBPortInfo[portID];       SET_DEPENDENCY_MAP(query, portID);        ixEthDBUpdateLock();    stations = ixEthDBQuery(NULL, query, IX_ETH_DB_WIFI_RECORD, MAX_ELT_SIZE);    gateways = ixEthDBGatewaySelect(stations);        /* clean up gw area */    memset((void *) portInfo->updateMethod.npeGwUpdateZone, FULL_GW_BYTE_SIZE, 0);    /* write all gateways */    gateway = gateways;    while (gateway != NULL)    {        ixEthDBNPEGatewayNodeWrite((void *) (((UINT32) portInfo->updateMethod.npeGwUpdateZone)             + gateway->descriptor->recordData.wifiData.gwAddressIndex * ELT_ENTRY_SIZE),             gateway);        gateway = gateway->right;    }    /* free the gateway tree */    if (gateways != NULL)    {        ixEthDBFreeMacTreeNode(gateways);    }    FILL_SETAPMACTABLE_MSG(message,         IX_OSAL_MMU_VIRT_TO_PHYS(portInfo->updateMethod.npeGwUpdateZone));    IX_ETHDB_SEND_NPE_MSG(IX_ETH_DB_PORT_ID_TO_NPE(portID), message, result);    if (result == IX_SUCCESS)    {        /* update the main tree (the stations tree) */        portInfo->updateMethod.searchTree = stations;                result = ixEthDBNPEUpdateHandler(portID, IX_ETH_DB_WIFI_RECORD);    }    ixEthDBUpdateUnlock();    return result;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产麻豆国产自产在线| 日韩一区二区三区观看| 国产乱子轮精品视频| 亚洲va国产天堂va久久en| 中文字幕一区三区| 久久免费电影网| 日韩精品一区二区在线| 欧美日韩免费一区二区三区| 99久久久免费精品国产一区二区| 国产黄色精品网站| 激情另类小说区图片区视频区| 日韩成人精品在线观看| 午夜精品福利久久久| 亚洲国产日韩一区二区| 一区2区3区在线看| 一区二区久久久久| 亚洲午夜av在线| 亚洲一区日韩精品中文字幕| 一区二区在线观看视频| 亚洲精品国产一区二区精华液| 亚洲天堂成人网| 玉米视频成人免费看| 亚洲影视在线观看| 亚洲 欧美综合在线网络| 亚洲成人av一区二区三区| 亚洲国产欧美在线| 三级欧美在线一区| 麻豆一区二区三| 国产乱子伦一区二区三区国色天香| 国产伦精品一区二区三区免费迷 | 国产精品欧美精品| 国产精品亲子伦对白| 中文字幕佐山爱一区二区免费| 亚洲女人****多毛耸耸8| 亚洲一区二区在线免费看| 亚洲尤物在线视频观看| 青青国产91久久久久久| 狠狠色狠狠色综合日日91app| 国产精品亚洲一区二区三区妖精| 成人手机电影网| 色噜噜狠狠色综合欧洲selulu| 欧美日韩www| 精品国产乱码久久久久久图片| 国产日韩亚洲欧美综合| 亚洲人123区| 日韩在线一区二区| 国产一区二区91| 91麻豆国产福利在线观看| 波多野结衣亚洲一区| 国产嫩草影院久久久久| 国产精品久久久久久久久搜平片 | 久久精品99国产精品| 国产精品996| 97se亚洲国产综合自在线| 欧美视频一区二区三区在线观看| 91精品国产黑色紧身裤美女| 久久精品夜色噜噜亚洲aⅴ| 亚洲欧美日韩中文字幕一区二区三区| 亚洲午夜视频在线观看| 精久久久久久久久久久| 99re热视频精品| 欧美一区二区成人6969| 中文字幕免费不卡| 视频一区免费在线观看| 成人国产亚洲欧美成人综合网| 欧美系列在线观看| 久久久久久久久岛国免费| 一区二区三区美女视频| 国产一区二区三区黄视频 | 555夜色666亚洲国产免| 中文字幕不卡三区| 奇米影视7777精品一区二区| 成人免费看黄yyy456| 欧美日韩不卡一区| 国产精品国产三级国产aⅴ入口| 丝瓜av网站精品一区二区| 成人午夜免费视频| 日韩视频在线你懂得| 亚洲另类在线制服丝袜| 国产乱理伦片在线观看夜一区| 欧美日韩亚洲不卡| 中文字幕一区日韩精品欧美| 九九九精品视频| 欧美日韩www| 亚洲欧美二区三区| 成人午夜在线视频| 精品国产乱码久久久久久久久| 亚洲自拍偷拍九九九| 成人a区在线观看| 久久综合网色—综合色88| 亚洲国产精品久久一线不卡| 成人av网站大全| 久久精品一区二区三区不卡牛牛 | 国产一区二区免费在线| 欧美精品乱码久久久久久按摩 | 8x8x8国产精品| 一区二区三区四区蜜桃| 不卡的看片网站| 国产清纯在线一区二区www| 另类综合日韩欧美亚洲| 欧美男人的天堂一二区| 一区二区三区四区不卡在线 | 精品国产乱码久久久久久影片| 视频一区在线播放| 在线中文字幕一区二区| 国产精品蜜臀在线观看| 欧美日韩和欧美的一区二区| 综合亚洲深深色噜噜狠狠网站| 粉嫩嫩av羞羞动漫久久久| 亚洲精品一区二区三区香蕉| 蜜桃av一区二区| 欧美一区二区精品| 日本欧美肥老太交大片| 在线成人免费观看| 天天综合色天天综合色h| 欧美日韩在线一区二区| 亚洲国产精品影院| 欧美日韩在线三级| 亚洲成人在线免费| 欧美区在线观看| 免费久久精品视频| 日韩欧美卡一卡二| 国产综合成人久久大片91| 精品国产乱码久久久久久图片| 精品一区二区三区视频| 久久久久国产精品麻豆| 高清不卡一区二区| 亚洲国产成人午夜在线一区| 99精品国产热久久91蜜凸| 亚洲精品va在线观看| 欧美另类变人与禽xxxxx| 青草av.久久免费一区| 欧美大胆人体bbbb| 国产福利一区在线观看| 国产精品理论在线观看| 色丁香久综合在线久综合在线观看| 亚洲最大成人网4388xx| 欧美人xxxx| 国产一区二区精品久久91| 国产精品久久久久久久久图文区| 一本到不卡精品视频在线观看| 亚洲国产精品综合小说图片区| 欧美一区二区三区色| 国产美女娇喘av呻吟久久| 中文字幕中文乱码欧美一区二区 | 美女一区二区视频| 国产亚洲一区二区在线观看| 成人18精品视频| 亚洲va天堂va国产va久| 欧美精品一区二区久久久| 成人激情文学综合网| 亚洲gay无套男同| 精品国精品国产| 99久久精品情趣| 日本在线不卡视频| 国产日韩v精品一区二区| 一本一本大道香蕉久在线精品 | 精品一区二区三区日韩| 国产精品乱人伦| 欧美久久久一区| 成人午夜在线免费| 五月婷婷激情综合| 国产日韩欧美麻豆| 欧美吞精做爰啪啪高潮| 国产精一品亚洲二区在线视频| 一区二区视频在线| ww亚洲ww在线观看国产| 色婷婷国产精品| 久久99精品一区二区三区| 亚洲欧美一区二区不卡| 日韩视频在线永久播放| 99视频精品在线| 久久超碰97中文字幕| 亚洲欧美激情在线| 欧美精品一区二区蜜臀亚洲| 91黄色在线观看| 懂色av一区二区三区免费观看| 亚洲一级不卡视频| 国产精品欧美综合在线| 精品久久久久久久人人人人传媒 | 一区av在线播放| 亚洲国产高清在线观看视频| 日韩一区二区在线观看视频播放| 91丝袜呻吟高潮美腿白嫩在线观看| 久久国产生活片100| 一区二区三区小说| 国产精品理论在线观看| 精品国产免费一区二区三区香蕉| 欧美亚洲愉拍一区二区| 成人午夜视频网站| 精品亚洲成av人在线观看| 五月天久久比比资源色| 亚洲欧美视频在线观看| 欧美韩国日本综合| 久久这里只有精品视频网| 宅男噜噜噜66一区二区66| 色哟哟一区二区在线观看| 粉嫩aⅴ一区二区三区四区五区| 裸体歌舞表演一区二区| 天天做天天摸天天爽国产一区|