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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? muxtklib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
            {            if (pNBuff)                netMblkClChainFree (pNBuff);            return ERROR;            }	}    else /* NPT driver */	{	/* if we get here we send the packet to the driver */	return (sendRtn (pEnd, pNBuff, dstMacAddr, netType, pSpareData));	}    }/******************************************************************************* muxTkSend - send a packet out on a Toolkit or END network interface** This routine uses <pCookie> to find a specific network interface and* uses that driver's send routine to transmit a packet.* * The transmit entry point for an NPT driver uses the following prototype:* .CS* STATUS nptSend*     (*     END_OBJ * pEND, 	        /@ END object @/*     M_BLK_ID 	pPkt, 		/@ network packet to transmit @/*     char * 	pDstAddr, 	/@ destination MAC address @/*     int 	netType 	/@ network service type @/*     void * 	pSpareData 	/@ optional network service data @/*     )* .CE** The transmit entry point for an END driver the following prototype:* .CS* STATUS endSend*     (*     void * 	pEND, 	/@ END object @/*     M_BLK_ID 	pPkt,	/@ Network packet to transmit @/*     )* .CE** An END driver must continue to provide the addressForm() entry point to* construct the appropriate link-level header. The <pDst> and <pSrc> M_BLK* arguments to that routine supply the link-level addresses with the* 'mData' and 'mLen' fields. The reserved field of the destination M_BLK* contains the network service type. Both arguments \f2must\fP* be treated as read-only.** To send a fully formed physical layer frame to a device using an NPT* driver (which typically forms the frame itself), set the M_L2HDR flag* in the 'mBlk' header.** A driver may be written so that it returns the error END_ERR_BLOCK if* the driver has insufficient resources to transmit data.  The network* service sublayer can use this feedback to establish a flow control* mechanism by holding off on making any further calls to muxTkSend()* until the device is ready to restart transmission, at which time the* device should call muxTxRestart() which will call the service sublayer's* stackRestartRtn() that was registered for the interface at bind time.** .IP <pCookie>* Expects the cookie returned from muxTkBind().  This Cookie* identifies the device to which the MUX has bound this protocol.** .IP <pNBuff>* The network packet to be sent, formed into an 'mBlk' chain.** .IP <dstMacAddr>* Destination MAC address to which packet is to be sent, determined* perhaps by calling the address resolution function that was registered* for this service/device interface.** .IP <netType>* Network service type of the sending service.  This will be used to* identify the payload type in the MAC frame.** .IP <pSpareData>* Reference to any additional data the network service wants to pass to the* driver during the send operation.** NOTE: A driver may return END_ERR_BLOCK if it is temporarily unable* to complete the send, and then call muxTxRestart() to indicate that it* is again able to send data.  If the driver has been written in this way,* muxTkSend() will pass the ERR_END_BLOCK back as its own return value and* the service can wait for its stackRestartRtn() callback routine to be* called before trying the send operation again.** RETURNS: OK; ENETDOWN, if <pCookie> doesn't represent a valid device;* or an error, if the driver's send() routine fails.** ERRNO: S_muxLib_NO_DEVICE*/STATUS muxTkSend    (    void *    pCookie,		/* returned by muxTkBind()*/    M_BLK_ID  pNBuff,		/* data to be sent */    char *    dstMacAddr,	/* destination MAC address */    USHORT    netType,		/* network protocol that is calling us */                                /** is netType redundant? **/    void *    pSpareData	/* spare data passed on each send */    )    {    MUX_ID    muxId = (MUX_ID)pCookie;    END_OBJ * pEnd = muxId->pEnd;    if (pEnd == NULL)        {        errnoSet (S_muxLib_NO_DEVICE);        if (pNBuff)            netMblkClChainFree (pNBuff);        return (ENETDOWN);        }    else        {	FUNCPTR sendRtn = pEnd->pFuncTable->send;	return (_muxTkSend (muxId, pNBuff, dstMacAddr, netType, pSpareData,			    sendRtn));        }    }/******************************************************************************* muxTkPollSend - send a packet out in polled mode to an END or NPT interface** This routine uses <pCookie> to find a specific network interface and* use that driver's pollSend() routine to transmit a packet.** This routine replaces the muxPollSend() routine for both END and NPT* drivers.** When using this routine, the driver does not need to call muxAddressForm()* to complete the packet, nor does it need to prepend an 'mBlk' of type* MF_IFADDR containing the destination address.** An NPT driver's pollSend() entry point is called based on this prototype:* .CS* STATUS nptPollSend*     (*     END_OBJ * pEND, 	        /@ END object @/*     M_BLK_ID 	pPkt, 		/@ network packet to transmit @/*     char * 	pDstAddr, 	/@ destination MAC address @/*     long 	netType 	/@ network service type @/*     void * 	pSpareData 	/@ optional network service data @/*     )* .CE** The pollSend() entry point for an END uses this prototype:* .CS* STATUS endPollSend*     (*     END_OBJ * pEND, 	/@ END object @/*     M_BLK_ID 	pPkt, 	/@ network packet to transmit @/*     )* .CE** An END driver must provide the addressForm() entry point to* construct the appropriate link-level header. The <pDst> and <pSrc> M_BLK* arguments to that routine supply the link-level addresses with the* mData and mLen fields. The reserved field of the destination M_BLK* contains the network service type. Both arguments \f2must\fP be treated as* read-only.** .IP <pCookie>* Expects the cookie returned from muxBind() or muxTkBind().  This cookie* identifies the device to which the MUX has bound this protocol.** .IP <pNBuff>* The network packet to be sent.** .IP <dstMacAddr>* Destination MAC address to which packet is to be sent** .IP <netType>* Network service type that will be used to identify the payload data in* the MAC frame.** .IP <pSpareData>* Reference to any additional data the network service wants to pass to the* driver during the send operation.** RETURNS: OK, ENETDOWN if <pCookie> doesn't represent a valid device,* or an error if the driver's pollSend() routine fails.** ERRNO: S_muxLib_NO_DEVICE*/STATUS muxTkPollSend    (    void *    pCookie,		/* returned by muxTkBind()*/    M_BLK_ID  pNBuff,		/* data to be sent */    char *    dstMacAddr,	/* destination MAC address */    USHORT    netType,		/* network protocol that is calling us */                                /** is netType redundant? **/    void *    pSpareData	/* spare data passed on each send */    )    {    MUX_ID    muxId = (MUX_ID)pCookie;    END_OBJ * pEnd = muxId->pEnd;    if (pEnd == NULL)        {        if (pNBuff)            netMblkClChainFree (pNBuff);        errnoSet (S_muxLib_NO_DEVICE);        return (ENETDOWN);        }    else        {	FUNCPTR sendRtn = pEnd->pFuncTable->pollSend;	return (_muxTkSend (muxId, pNBuff, dstMacAddr, netType,			    pSpareData, sendRtn));        }    }/****************************************************************************** * muxTkPollReceive - poll for a packet from a NPT or END driver** This is the routine that an upper layer can call to poll for a packet.* Any service type retrieved from the MAC frame is passed via the reserved* member of the M_BLK header.** This API effectively replaces muxPollReceive() for both END and NPT drivers.** For an NPT driver its pollReceive() entry point is called based on the new* prototype:* .CS* STATUS nptPollReceive*     (*     END_OBJ * pEND, 	        /@ END object @/*     M_BLK_ID 	pPkt, 		/@ network packet buffer @/*     long * 	pNetSvc, 	/@ service type from MAC frame @/*     long * 	pNetOffset, 	/@ offset to network packet @/*     void * 	pSpareData 	/@ optional network service data @/*     )* .CE** The pollReceive() entry point for an END driver uses the original prototype:* .CS* STATUS endPollRcv*     (*     END_OBJ * pEND, 	/@ END object @/*     M_BLK_ID 	pPkt, 	/@ network packet buffer @/*     )* .CE** An END driver must continue to provide the packetDataGet() entry point** .IP <pCookie>* Expects the cookie that was returned from muxBind() or muxTkBind().* This "cookie" identifies the driver. ** .IP <pNBuff>* Expects a pointer to a buffer chain into which incoming data will be put.** .IP <pSpareData>* A pointer to any optional spare data provided by a NPT driver. Always* NULL with an END driver.** RETURNS: OK; EAGAIN, if no packet was available; ENETDOWN, if the 'pCookie'* does not represent a loaded driver; or an error value returned from the * driver's registered pollReceive() function.** ERRNO: S_muxLib_NO_DEVICE*/STATUS muxTkPollReceive    (    void *    pCookie,	/* cookie from muxTkBind routine */    M_BLK_ID  pNBuff,	/* a vector of buffers passed to us */    void *    pSpare	/* a reference to  spare data is returned here */    )    {    int          error        = OK;    MUX_ID       muxId        = (MUX_ID)pCookie;    END_OBJ *    pEnd         = muxId->pEnd;    FUNCPTR      pollRcvRtn;    LL_HDR_INFO  llHdrInfo;     int          netPktOffset = 0;    int          netSvcType   = 0;    if (pEnd == NULL)	{        errnoSet (S_muxLib_NO_DEVICE);	return (ENETDOWN);	}    pollRcvRtn = pEnd->pFuncTable->pollRcv;    if (!TK_DRV_CHECK(muxId))	{	/* call END poll receive routine */	if ((error = pollRcvRtn (pEnd, pNBuff)) == OK)	    {	    if (pEnd->pFuncTable->packetDataGet (pNBuff,&llHdrInfo) == ERROR)		return (ERROR);	    }	netPktOffset = llHdrInfo.dataOffset;	netSvcType = llHdrInfo.pktType;	if (pSpare)	    *(UINT32 *)pSpare = (UINT32)NULL;	}    else	{	error = pollRcvRtn (pEnd, pNBuff,&netSvcType,			    &netPktOffset, pSpare);        if (error != OK)	    return error;	}    /* restore the network layer packet for a non SNARF protocol */    if (muxId->netSvcType != MUX_PROTO_SNARF)	{	pNBuff->mBlkHdr.mData += netPktOffset;	pNBuff->mBlkHdr.mLen -= netPktOffset;	}    /* Save the service type returned by the driver in the reserved field. */    pNBuff->mBlkHdr.reserved = (USHORT)netSvcType;    return (error);    }/******************************************************************************** muxTkPollReceive2 - muxTkPollReceive + muxTkReceive** Combines muxTkPollReceive and muxTkReceive.** RETURNS: OK if the packet is passed up the stack* * NOMANUAL*/STATUS muxTkPollReceive2    (    void *    pCookie,  /* cookie from muxTkBind routine */    M_BLK_ID  pNBuff    )    {    MUX_ID       muxId        = (MUX_ID)pCookie;    END_OBJ *    pEnd         = muxId->pEnd;    FUNCPTR      pollRcvRtn;    int          netPktOffset = 0;    int          netSvcType   = 0;        pollRcvRtn = pEnd->pFuncTable->pollRcv;    if (pollRcvRtn (pEnd, pNBuff, &netSvcType, &netPktOffset, NULL) == ERROR)	return (ERROR);        /* restore the network layer packet for a non SNARF protocol */    if (((MUX_ID)pCookie)->netSvcType != MUX_PROTO_SNARF)	{	pNBuff->mBlkHdr.mData += netPktOffset;	pNBuff->mBlkHdr.mLen -= netPktOffset;	}    /* Save the service type returned by the driver in the reserved field. */    pNBuff->mBlkHdr.reserved = (USHORT)netSvcType;    muxTkReceive (pCookie, pNBuff, netPktOffset, netSvcType,	((END_OBJ *)pCookie)->flags & IFF_PROMISC, NULL);    return (OK);    }/******************************************************************************** muxEndRcvRtn - wrapper stack receive routine for END drivers* * This routine is installed as the stackRcvRoutine() for all END drivers bound* to with the muxTkBind() call. This allows muxTkBind() to support both END* and NPT drivers and thus eliminates the need to call muxTkDrvCheck().** For incoming data, the <pCookie> argument is equal to the value from the* muxBind() routine (if it had been used). For an NPT output filter bound* to an END device, the <pCookie> argument is equal to NULL.** The <pSpare> argument is equal to the address of the BIB entry for the* protocol/device binding.** RETURNS: OK or ERROR** NOMANUAL*/int muxEndRcvRtn    (    void *        pCookie,       	/* muxReceive cookie, or NULL */    long          type,			/* network service type */    M_BLK_ID      pMblk,		/* MAC frame */    LL_HDR_INFO * pLinkHdrInfo,		/* link level information */    void *        pSpare		/* pSpare argument (from muxBind) */    )    {    BOOL      retVal = FALSE;    MUX_ID    muxId  = (MUX_ID) pSpare;    END_OBJ * pEnd   = muxId->pEnd;    if (pLinkHdrInfo == NULL || pEnd == NULL)	return ERROR;    /* point to network packet and adjust the length */    pMblk->mBlkHdr.mData        += pLinkHdrInfo->dataOffset;    pMblk->mBlkHdr.mLen         -= pLinkHdrInfo->dataOffset;    pMblk->mBlkPktHdr.len       -= pLinkHdrInfo->dataOffset;    /* call the registered network service's stack recv routine */    retVal = muxId->netStackRcvRtn (muxId->pNetCallbackId,type,pMblk,NULL);    if (muxId->netSvcType == MUX_PROTO_OUTPUT && retVal == FALSE)	{	/*	 * if we are called via the output filter mechanism and the	 * filter does not consume the packet we need to undo the stripping	 * of the MAC header	 */	pMblk->mBlkHdr.mData        -= pLinkHdrInfo->dataOffset;	pMblk->mBlkHdr.mLen         += pLinkHdrInfo->dataOffset;	pMblk->mBlkPktHdr.len       += pLinkHdrInfo->dataOffset;	}    return (retVal);    }/******************************************************************************** muxTkBibEntryGet - find the next available slot in the BIB ** This is a internal function called to find the next available entry in* the BIB. For the first protocol that binds to a particular device the* entry that was partially filled at the time of driver load, using

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久aaaa樱花| 色综合久久久久久久久久久| 欧美一级日韩免费不卡| 亚洲电影一区二区三区| 欧美精品日韩综合在线| 免费看日韩精品| 精品99999| 不卡一区在线观看| 亚洲精品成人少妇| 欧美高清视频不卡网| 久久99久久久久久久久久久| 久久久不卡网国产精品一区| 99久久伊人精品| 亚洲超碰精品一区二区| 精品不卡在线视频| 91麻豆福利精品推荐| 日韩精品亚洲专区| 中文字幕精品一区二区三区精品| 91麻豆精品一区二区三区| 日韩不卡免费视频| 国产欧美中文在线| 欧美日韩极品在线观看一区| 国产一区二区三区高清播放| 亚洲女女做受ⅹxx高潮| 欧美岛国在线观看| 97国产一区二区| 麻豆精品国产传媒mv男同| 国产精品视频你懂的| 777xxx欧美| www.欧美色图| 老司机免费视频一区二区| 1024成人网色www| 日韩午夜精品电影| 91在线一区二区三区| 国产一区二区三区精品视频| 亚洲在线中文字幕| 中国色在线观看另类| 欧美一二三四区在线| 97久久久精品综合88久久| 国模娜娜一区二区三区| 亚洲成人综合在线| 国产精品国产三级国产| 精品福利一二区| 91精品国产丝袜白色高跟鞋| 99re免费视频精品全部| 国产一区二区在线免费观看| 亚洲国产一区二区三区| 国产精品不卡一区| 久久久久久久久久久久久夜| 欧美精品一卡两卡| 91极品视觉盛宴| 成人福利电影精品一区二区在线观看| 美女免费视频一区二区| 性感美女极品91精品| 亚洲激情在线激情| 亚洲欧洲色图综合| 欧美经典一区二区三区| 日韩欧美你懂的| 制服丝袜日韩国产| 欧美视频你懂的| 在线日韩一区二区| 91美女在线看| 色哟哟一区二区在线观看| 成人蜜臀av电影| 粉嫩嫩av羞羞动漫久久久| 国产精品中文字幕欧美| 精品一区二区av| 经典三级在线一区| 久久精品国产一区二区三 | 国产精品视频一二三区 | 欧美色老头old∨ideo| 色婷婷综合久久久久中文一区二区| 成人h动漫精品一区二区| 国产激情偷乱视频一区二区三区| 精品一区二区三区的国产在线播放| 日日夜夜精品视频免费| 日韩精品乱码av一区二区| 水野朝阳av一区二区三区| 日日骚欧美日韩| 日本亚洲电影天堂| 美女网站在线免费欧美精品| 麻豆国产精品官网| 韩国一区二区视频| 国产成人精品一区二区三区网站观看 | 在线视频中文字幕一区二区| 一本一道波多野结衣一区二区| 91免费看`日韩一区二区| 99精品国产视频| 欧美在线啊v一区| 91蜜桃传媒精品久久久一区二区| 国产成人精品免费在线| 国产一区二区电影| 波多野结衣在线一区| 色综合天天综合狠狠| 欧美性受xxxx黑人xyx性爽| 在线不卡的av| 欧美zozozo| 中文字幕精品在线不卡| 亚洲一区二区三区小说| 日韩精品国产精品| 狠狠狠色丁香婷婷综合激情| 成人精品鲁一区一区二区| 色88888久久久久久影院野外 | 91传媒视频在线播放| 欧美精品在线观看播放| 久久精品一区二区| 亚洲特级片在线| 全部av―极品视觉盛宴亚洲| 高清beeg欧美| 欧美日韩电影在线| 国产视频一区二区在线| 一区二区三区视频在线看| 日本sm残虐另类| 成人高清av在线| 日韩一区二区三区电影在线观看| 国产人妖乱国产精品人妖| 亚洲老司机在线| 国产在线看一区| 欧美日韩国产一二三| 国产喂奶挤奶一区二区三区| 一区二区三区四区高清精品免费观看 | 欧美日韩在线综合| 久久久www免费人成精品| 亚洲一二三区视频在线观看| 黄色资源网久久资源365| 欧洲亚洲国产日韩| 国产亚洲成aⅴ人片在线观看| 亚洲国产一区二区三区| 国产精品1区2区| 91麻豆精品国产91久久久更新时间| 国产欧美1区2区3区| 日韩电影在线观看电影| 91蜜桃在线免费视频| 精品久久一区二区| 水野朝阳av一区二区三区| 99久久精品免费| 2021久久国产精品不只是精品| 一区二区高清免费观看影视大全| 国产麻豆日韩欧美久久| 欧美日韩视频一区二区| 亚洲人精品一区| 国产91露脸合集magnet| 日韩久久久精品| 亚洲第一福利视频在线| 91蜜桃免费观看视频| 国产精品天天摸av网| 韩国女主播成人在线| 91精品国产综合久久精品性色 | 性久久久久久久久久久久| 97国产精品videossex| 国产精品欧美一区二区三区| 狠狠色狠狠色合久久伊人| 91精品国产一区二区三区| 午夜精品久久久久久久| 欧美影片第一页| 亚洲黄色av一区| 在线观看亚洲精品视频| 亚洲三级在线播放| 成人精品小蝌蚪| 国产精品国产三级国产普通话99| 成人深夜视频在线观看| 久久精品一区二区三区不卡| 国产精品影音先锋| 久久这里只有精品6| 极品美女销魂一区二区三区| 欧美刺激脚交jootjob| 韩国理伦片一区二区三区在线播放| 日韩午夜激情电影| 九九**精品视频免费播放| 久久亚洲春色中文字幕久久久| 久久精品国产在热久久| 欧美精品一区二区精品网| 国产一区二区不卡| 久久久精品tv| eeuss影院一区二区三区| 一区二区三区中文字幕精品精品| 91论坛在线播放| 亚洲第一成人在线| 日韩一区二区免费电影| 激情综合亚洲精品| 国产精品欧美久久久久无广告 | 中文字幕一区二区视频| caoporn国产精品| 亚洲一二三区视频在线观看| 5858s免费视频成人| 国产最新精品免费| 亚洲欧洲精品一区二区三区不卡 | 7777精品伊人久久久大香线蕉经典版下载 | 中文字幕日韩一区| 欧美三级资源在线| 黄网站免费久久| ...av二区三区久久精品| 欧美日韩亚洲综合在线| 久久se精品一区二区| 国产精品美女久久久久高潮| 在线一区二区三区四区五区| 日本免费在线视频不卡一不卡二| 精品国内二区三区| 色婷婷久久久久swag精品| 日韩精品欧美精品|