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

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

?? muxlib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* muxLib.c - MUX network interface library *//* Copyright 1984 - 2002 Wind River Systems, Inc. *//*modification history--------------------03z,10may02,wap  Remove unnecessary redeclaration of endList (SPR #74201)03y,07may02,kbw  man page edits03x,25apr02,vvv  return on muxTkBindUpdate error in muxBind (SPR #74042)03w,22apr02,wap  Don't call muxTkUnbindUpdate() on invalid/free()'ed pointer                 (SPR #74861)03v,05nov01,vvv  fixed compilation warnings03u,26oct01,vvv  added NULL check for END object in muxEndFlagsNotify		 (SPR #69540)03t,15oct01,rae  merge from truestack ver 03o, base 02n(?) (SPRs 69573,70722,                 64471, 64473, 64406, 32626, ROUTER_STACK, etc.)03s,14jun01,vvv  fixed compilation warnings03r,08jun01,vvv  added missing closing for-loop closing bracket in 		 muxReceive03q,10apr01,rae  muxReceive only calls interested protocols (SPR #65557)03p,09nov00,spm  removed pNptCookie from END_OBJ for binary compatibility03o,07nov00,spm  removed nptFlag from END_OBJ for T2 END binary compatibility03n,30oct00,kbw  putting back the NOMANUAL per request of dgross03m,30oct00,kbw  removing NOMANUAL assignemnt to muxReceive, OK'd by GNN03m,24oct00,niq  Merging in RFC2233 changes fron tor2_0.open_stack-f1 branch                 03n,24oct00,ann  fixed a bug in the EIOCGMCASTLIST part of                 muxIoctl                 03m,16may00,ann  merging from post R1 on openstack branch to                 incorporate RFC2233 implementation                 03k,10mar00,ead  fixed MIB-2 counter updates to use new                  RFC 2233 m2IfLib03l,17oct00,niq  Update pEnd->snarfCount only when protocol addition is                 complete03k,16oct00,spm  merged from version 03a of tor3_0_x branch (base version 02n):                 adds multiple SNARF protocol support, bug fixes and cleanup,                 and backward compatibility fixes03i,07jul99,pul  modify description for man page generation03h,30apr99,pul  muxIoctl: check for error before calling muxEndFlagsNotify 03g,29apr99,pul  muxPollSend: Call endpacketDataGet directly instead of 		 muxPacketDataGet 03f,29apr99,pul  Upgraded NPT phase3 code to tor2.0.003e,31mar99,spm  removed \040 codes from muxMCastAddrGet() entry (SPR #26268)03d,30mar99,pul  removed all references to muxSvcFunc and muxMCastFunc03c,25mar99,sj   detect if the end.flags actually changed before notifying all03b,25mar99,sj   muxDevUnload does not free pEnd->devObject.pDevice + misc03a,24mar99,sj   before calling Error,Restart or Shutdown callbacks check for              	 MUX_BIND or MUX_TK_BIND02z,19mar99,sj   no need to notify the protocol that changed the END flags02y,18mar99,sj   in muxLibInit return status returned by muxTkBibInit02x,18mar99,sj   added notification to protocols when END flags change02w,05mar99,sj   eliminated hooks; not cleanly though. next version will do that02v,03mar99,pul  fix for SPR# 2428502u,02mar99,pul  fixed the return value for muxUnbind(): SPR# 2429302t,13nov98,n_s  added muxDevStopAll function.  Added reboot hook in                 muxLibInit so that muxDevStop all is called prior to reboot.                  spr #2322902s,10nov98,sj   more doc changes for NPT02r,03nov98,sj   added check for NPT driver in muxSend + doc fixes02q,12oct98,pul  modified the NPT hooks for compatibility with SENS 02p,08oct98,sj   making DOC fixes for NPT02o,07oct98,sj   added npt hooks02n,09sep98,ham  corrected the comprison of ifTypes and MUX_MAX_IFTYPE.02m,09sep98,ham  cont'd SPR#22298.02l,08sep98,ham  moved MUX_MAX_TYPE to h/muxLib.h, SPR#22298.02k,21aug98,n_s  fixed ifInUnknownProtos update in muxReceive, ifOutNUcastPkts                 update in muxSend (). spr 21074.02j,16jul98,n_s  Added semGive () to ERROR condition for driver unload call in                 muxDevUnload ().02i,13jul98,n_s  fixed muxDevLoad () to limit device name strcpy () to                  END_NAME_MAX.  spr # 2164202h,13jul98,n_s  fixed muxBind () to clear malloc'd NET_PROTOCOL. spr # 2164402g,24jun98,n_s  fixed muxUnbind () to check NET_PROTOCOL node for type 02f,15jun98,n_s  fixed muxDevUnload () and muxUnbind (). spr # 2154202e,13feb98,n_s  fixed endFindByName () to handle multiple devices.                  spr # 21055.02d,02feb98,spm  removed unneeded '&' operator and corrected spacing02c,17jan98,gnn  fixed a bug in the output filter with passing LL_HDR_INFO.02b,17jan98,gnn  changed output routines so they can be BOOL like receive                 routines.02a,17jan98,kbw  made man page fixes01z,14dec97,kbw  made man page fixes01y,10dec97,kbw  made man page fixes01x,08dec97,gnn  END code review fixes.01w,21oct97,kbw  made man page fixes01v,08oct97,vin  fixed muxPacketAddrGet().01u,07oct97,vin  fixed a problem with calling muxIoctl, removed IFF_LOAN01t,03oct97,gnn  added error routine and cleaned up function prototypes01s,25sep97,gnn  SENS beta feedback fixes01r,25aug97,gnn  documenatation changs to make mangen happy.01q,25aug97,gnn  fixed a bug in the restart routine.01p,22aug97,gnn  updated polled mode support.01o,19aug97,gnn  changes due to new buffering scheme.01n,12aug97,gnn  changes necessitated by MUX/END update.01m,31jul97,kbw  fixed man page bug that broke build, comment in comment01l,31jul97,kbw  fixed man page problems found in beta review01k,15may97,gnn  removed many warnings.                 added code to handle MUX_PROTO_OUTPUT.01j,30apr97,jag  man edits for funtion muxBufInit()01i,17apr97,gnn  removed muxDevStart from muxDevLoad.01h,07apr97,gnn  added errnoSet calls                 added muxDevNameGet.                 modified the way muxDevLoad works.01g,12mar97,gnn  fixed a bug in muxReceive's calling API.01f,03feb97,gnn  Modified muxBuf code to be more generic and support other,                 non-TMD systems.01e,29jan97,gnn  Removed the code to start the tNetTask.01d,21jan97,gnn  Added muxBuf* code to handle buffering system.                 Added code to handle the new SNARF option.                 Removed all loaning and reference counting stuff.                 Removed TxBuf stuff.01e,23oct96,gnn  name changes to follow coding standards.                 removed some compiler warnings.01d,22oct96,gnn  added routines to start and stop drivers.                 added code to handle buffer loaning startup requests on                 both the protocol and device side.                 replaced netVectors with netBuffers.01c,23sep96,gnn	 moved some generic code to here from the driver.01b,22Apr96,gnn	 filling in with real code.01a,21Mar96,gnn	 written.*/ /*DESCRIPTIONThis library provides the routines that define the MUX interface, a facilitythat handles communication between the data link layer and the networkprotocol layer.  Using the MUX, the VxWorks network stack has decoupled thedata link and network layers.  Drivers and services no longer need knowledge of each other's internals.  This independence makes it much easier to add new drivers or services.  For example, if you add a new MUX-based "END" driver, all existing MUX-based services can use the new driver.  Likewise, if you add a new MUX-based service, any existing END can use the MUX to access the new service.  INCLUDE FILES: errno.h, lstLib.h, logLib.h, string.h, m2Lib.h, bufLib.h, if.h,end.h, muxLib.h, vxWorks.h, taskLib.h, stdio.h, errnoLib.h, if_ether.h,netLib.h, semLib.h, rebootLib.hTo use this feature, include the following component:INCLUDE_MUXSEE ALSO.I "VxWorks AE Network Programmer's Guide"*//* includes */#include "vxWorks.h"#include "taskLib.h"#include "stdio.h"#include "errno.h"#include "errnoLib.h"#include "lstLib.h"#include "logLib.h"#include "string.h"#include "m2Lib.h"#include "net/if.h"		/* Needed for IFF_LOAN flag. */#include "netinet/if_ether.h"#include "netLib.h"		/* Needed for netJobAdd */#include "bufLib.h"#include "semLib.h"#include "end.h"                /* Necessary for any END as well as the MUX */#include "muxLib.h"#include "muxTkLib.h"#include "private/muxLibP.h"#include "rebootLib.h"#include "memPartLib.h"#ifdef VIRTUAL_STACK #include "netinet/vsLib.h"#endif    /* VIRTUAL_STACK *//* defines */#define STREQ(A, B) (strcmp(A, B) == 0 ? 1 : 0)#define NET_TASK_NAME "tNetTask"#define TK_DRV_CHECK(pBib) ((((MUX_ID)pBib)->flags & BIB_TK_DRV) ? TRUE : FALSE)#define GET_IFMTU(a) (((a)->flags & END_MIB_2233) ? \	    (a)->pMib2Tbl->m2Data.mibIfTbl.ifMtu : (a)->mib2Tbl.ifMtu)/* externs *//* globals *//* locals */LOCAL muxLib muxLibState;LOCAL LIST endList;#ifndef	STANDALONE_AGENTLOCAL LIST addrResList[MUX_MAX_IFTYPE + 1]; /* IFT_xxx begins from 1 */#endif	/* STANDALONE_AGENT *//* forward declarations */LOCAL M_BLK_ID 	*pMuxPollMblkRing;LOCAL void 	**ppMuxPollDevices;LOCAL int 	muxPollDevCount;LOCAL int 	muxPollDevMax;IMPORT STATUS muxTkReceive (void *, M_BLK_ID, long, long, BOOL, void *);LOCAL void    muxEndFlagsNotify (void * pCookie, long endFlags); LOCAL STATUS  muxDevStopAllImmediate (void);/********************************************************************************* muxLibInit - initialize global state for the MUX** This routine initializes all global states for the MUX.** RETURNS: OK or ERROR.*/STATUS muxLibInit (void)    {#ifndef	STANDALONE_AGENT    int count;#endif 	/* STANDALONE_AGENT */    STATUS status = OK;    if (muxLibState.lock != NULL)        return (OK);    muxLibState.debug = FALSE;    muxLibState.lock = NULL;    muxLibState.mode = MUX_MODE_NORM;    muxLibState.priority = MUX_POLL_TASK_PRIORITY; /* Lame */    muxLibState.taskDelay = MUX_POLL_TASK_DELAY; /* Lame */    muxLibState.taskID = 0;    muxLibState.lock = semBCreate(SEM_Q_PRIORITY, SEM_FULL);    if (muxLibState.lock == NULL)        return (ERROR);#ifndef	STANDALONE_AGENT    /*     * Initialize our lists to empty.     * addrResList[0] will not be used because IFT_xxx begins from 1     */    for (count = 0; count <= MUX_MAX_IFTYPE; count++)        lstInit (&addrResList[count]);#endif 	/* STANDALONE_AGENT */        /* initialize END list */    lstInit (&endList);        /* Add hook to stop all ENDs when the system reboots */    if (rebootHookAdd ((FUNCPTR) muxDevStopAllImmediate) != OK)	{	return (ERROR);	}    /* Initialize BIB. */    status = muxTkBibInit();    if (muxLibState.debug)        logMsg ("End of muxLibInit\n", 0, 0, 0, 0, 0, 0);    return (status);    }    /******************************************************************************* * muxDevLoad - load a driver into the MUX* * The muxDevLoad() routine loads a network driver into the MUX.  Internally, * this routine calls the specified <endLoad> routine to initialize the* software state of the device.  After the device is initialized,* you must call muxDevStart() to start the device. * .IP <unit> 15* Expects the unit number of the device. * .IP <endLoad> * Expects a pointer to the network driver's endLoad() or nptLoad() entry* point. * .IP <pInitString> * Expects a pointer to an initialization string, typically a colon-delimited* list of options.  The muxDevLoad() routine passes this along blindly to * the <endLoad> function.* .IP <loaning> * Currently unused.* .IP <pBSP>* The MUX blindly passes this argument to the driver, which may or may not * use it.  Some BSPs use this parameter to pass in tables of functions that * the diver can use to deal with the particulars of the BSP. ** VXWORKS AE PROTECTION DOMAINS* Under VxWorks AE, you can call muxDevLoad() from within the kernel * protection domain only, and the data referenced in the <endLoad> and  * <pBSP> parameters must reside in the kernel protection domain.  In * addition, the returned void pointer is valid in the kernel protection * domain only. This restriction does not apply under non-AE versions of * VxWorks.  * * RETURNS: A cookie representing the new device, or NULL if an error occurred.** ERRNO: S_muxLib_LOAD_FAILED*/void * muxDevLoad    (    int       unit,                      /* unit number of device */    END_OBJ * (*endLoad) (char*, void*), /* load function of the driver  */    char *    pInitString,		 /* init string for this driver  */    BOOL      loaning,		         /* we loan buffers  */    void *    pBSP                       /* for BSP group  */    )    {    END_OBJ *     pNew;    END_TBL_ROW * pNode;    char          initString [END_INIT_STR_MAX];    char          devName [END_NAME_MAX];    BOOL          found = FALSE;    void *        pCookie = NULL;    if (muxLibState.debug)        logMsg ("Start of muxDevLoad\n", 0, 0, 0, 0, 0, 0);    bzero ( (char *)initString, END_INIT_STR_MAX);    bzero ( (char *)devName, END_NAME_MAX);    /* Let's mutually exclude here, wouldn't you say? */    semTake (muxLibState.lock, WAIT_FOREVER);        /*     * Loading a device is a two pass algorithm.     *     * This is Pass 1.     *     * In the first pass we ask the device what its name is.  If that name     * exists in our table then we add the new node to the end of the     * already existing list.  If not then we create a new row in the     * table, and place the new node as the zero'th (0) element in the node's     * list.     */    if (endLoad ( (char *)devName, NULL) != 0)        {        goto muxLoadErr;        }    if (endFindByName ( (char *)devName, unit) != NULL)        {        goto muxLoadErr;        }    for (pNode = (END_TBL_ROW *)lstFirst(&endList); pNode != NULL; 	pNode = (END_TBL_ROW *)lstNext(&pNode->node))	{	if (STREQ (pNode->name, (char *)devName))            {            found = TRUE;            break;            }	}    /*  If there is no row for this device then add it. */        if (!found)        {        pNode = KHEAP_ALLOC (sizeof(END_TBL_ROW));        if (pNode == NULL)            {            goto muxLoadErr;            }        bzero ((char *)pNode, sizeof(END_TBL_ROW));        strncpy(pNode->name, devName, END_NAME_MAX - 1);	pNode->name [END_NAME_MAX - 1] = EOS;        lstAdd(&endList, &pNode->node);        }    /*     * This is Pass 2.     *     * Now that we can determine a unique number we assign that number to     * the device and actually load it.     */        sprintf ( (char *)initString, "%d:%s", unit, pInitString);    pNew = (END_OBJ *)endLoad ( (char *)initString, pBSP);    if (pNew == NULL)        {        goto muxLoadErr;        }    /*      * Leave this stuff last to prevent a race condition.  The condition     * would be that the driver could call the receive routine 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜激情视频| 日韩欧美国产精品一区| 91精品在线免费观看| 一本一道综合狠狠老| 成人午夜视频福利| 白白色 亚洲乱淫| av日韩在线网站| 亚洲综合一二三区| 亚洲免费在线播放| 亚洲欧美另类图片小说| 一区二区三区毛片| 午夜视频在线观看一区| 三级在线观看一区二区| 麻豆一区二区三| 激情综合网av| 波多野结衣视频一区| 日本丶国产丶欧美色综合| 欧美专区在线观看一区| 欧美喷潮久久久xxxxx| 日韩欧美综合在线| 亚洲国产岛国毛片在线| 中文字幕一区二区不卡| 亚洲成a人v欧美综合天堂下载 | 91精品在线观看入口| 欧美成人一区二区| 国产精品免费看片| 亚洲一区二区三区美女| 日韩综合一区二区| 成人精品一区二区三区四区| 色综合久久中文字幕综合网| 91精品国产91热久久久做人人 | 国产一区二区三区美女| 色哟哟一区二区三区| 日韩一级在线观看| 日本精品视频一区二区三区| 91精品在线免费| 综合久久久久久| 免费精品视频最新在线| 成人h版在线观看| 欧美一区二区三区日韩视频| 国产女同性恋一区二区| 视频在线观看一区二区三区| 成人性视频免费网站| 欧美一区二区视频在线观看| 国产精品理论片| 另类的小说在线视频另类成人小视频在线 | 亚洲一区二区三区国产| 精品一区二区在线观看| 一本久道中文字幕精品亚洲嫩| 欧美一区二区在线免费播放| 中文字幕在线不卡视频| 亚洲一区二区三区在线播放| 国产成+人+日韩+欧美+亚洲| 日本不卡视频一二三区| 91久久国产综合久久| 久久无码av三级| 麻豆免费精品视频| 欧美精品乱人伦久久久久久| 国产精品丝袜一区| 国产伦精品一区二区三区视频青涩 | 久久久久久久免费视频了| 亚洲一卡二卡三卡四卡| 99精品在线免费| 国产三级精品三级| 美腿丝袜亚洲色图| 8x8x8国产精品| 亚洲国产成人va在线观看天堂| 盗摄精品av一区二区三区| 精品国产在天天线2019| 人妖欧美一区二区| 麻豆高清免费国产一区| 欧美精品久久天天躁| 亚洲成人自拍偷拍| 欧美日韩高清不卡| 亚洲国产精品一区二区www在线| 91在线精品一区二区| 日韩毛片高清在线播放| 不卡av免费在线观看| 国产欧美日韩激情| 国产在线麻豆精品观看| 精品国产伦一区二区三区观看方式 | 综合久久一区二区三区| 99久久国产综合精品色伊| 中文av字幕一区| 91蜜桃传媒精品久久久一区二区 | 成人精品鲁一区一区二区| 亚洲国产精品国自产拍av| 国产一区二区美女诱惑| 久久精品视频一区| 丁香六月综合激情| 一区二区三区中文字幕在线观看| 91久色porny | 精品国产91久久久久久久妲己| 久久精品国内一区二区三区| 精品国产露脸精彩对白| 国产乱人伦精品一区二区在线观看 | 国产精品成人免费在线| 91福利视频久久久久| 亚洲午夜一区二区三区| 日韩一区二区精品| 国产成人精品亚洲日本在线桃色 | 日韩欧美色电影| 国产一区二区看久久| 亚洲日本乱码在线观看| 色婷婷综合激情| 婷婷成人激情在线网| 精品久久久久久久一区二区蜜臀| 国产精品亚洲第一| 亚洲一区二区三区国产| 欧美狂野另类xxxxoooo| 高清在线不卡av| 亚洲精品免费在线| 日韩欧美中文字幕精品| 本田岬高潮一区二区三区| 亚洲高清免费在线| 中文在线资源观看网站视频免费不卡| 欧美在线观看你懂的| 26uuu久久天堂性欧美| av在线播放成人| 精品一区二区三区av| 樱花草国产18久久久久| 久久久国产综合精品女国产盗摄| 午夜久久电影网| 国产精品久久久久久久久免费桃花| 欧美视频一区二区三区四区 | 色www精品视频在线观看| 久久电影网电视剧免费观看| 一区二区三区四区高清精品免费观看| 精品日本一线二线三线不卡 | 日韩激情一区二区| 91亚洲精品一区二区乱码| 极品少妇xxxx偷拍精品少妇| 一级中文字幕一区二区| 欧美国产视频在线| 日韩欧美国产成人一区二区| 99riav一区二区三区| 久久精品国产精品青草| 亚洲成av人片一区二区| 综合网在线视频| 国产精品久久久久影院亚瑟 | 精品久久一区二区| 欧美日韩视频在线观看一区二区三区| 懂色av一区二区三区蜜臀| 青青草原综合久久大伊人精品 | 极品少妇xxxx偷拍精品少妇| 日韩va欧美va亚洲va久久| 一区二区三区欧美日韩| 综合久久国产九一剧情麻豆| 2020国产精品自拍| 精品电影一区二区三区 | 国产精品一品视频| 青青草成人在线观看| 亚洲18色成人| 亚洲第一成年网| 午夜电影一区二区三区| 三级在线观看一区二区| 三级久久三级久久| 美国三级日本三级久久99| 日本色综合中文字幕| 日韩高清一级片| 久久国产婷婷国产香蕉| 韩国精品在线观看| 岛国精品一区二区| 91网站最新地址| 在线免费观看日本欧美| 欧美三区免费完整视频在线观看| 欧美性高清videossexo| 欧美亚洲综合一区| 欧美午夜电影在线播放| 91精品免费观看| 精品国产免费一区二区三区香蕉| 久久久99久久| 国产精品久久久久久久午夜片| 一区二区三区免费观看| 日韩精品亚洲一区二区三区免费| 亚洲.国产.中文慕字在线| 紧缚奴在线一区二区三区| 国产成人在线看| 日本久久一区二区三区| 337p亚洲精品色噜噜| 久久久精品免费免费| 亚洲精品大片www| 蜜臀av性久久久久蜜臀aⅴ| 国产综合成人久久大片91| 99视频超级精品| 日韩三级在线观看| 亚洲色图清纯唯美| 午夜av区久久| 国产高清精品久久久久| 欧美亚洲综合网| 国产亚洲婷婷免费| 日日夜夜精品视频免费| 国产精品系列在线观看| 色综合网色综合| 久久久精品国产免费观看同学| 亚洲成人激情av| 白白色 亚洲乱淫| 久久众筹精品私拍模特| 在线一区二区三区做爰视频网站| 精品久久久久久久久久久久包黑料 |