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

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

?? m2tcplib.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* m2TcpLib.c - MIB-II TCP-group API for SNMP agents *//* Copyright 1984 - 2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01f,15oct01,rae  merge from truestack ver 01j, base 01e (VIRTUAL_STACK)01e,08mar97,vin  added changes to accomodate changes in pcb structure.01d,25jan95,jdi  doc cleanup.01c,11nov94,rhp  edit man pages01b,10nov94,rhp  fixed typo in m2TcpInit man page01a,08dec93,jag  written*//*DESCRIPTIONThis library provides MIB-II services for the TCP group.  It provides routinesto initialize the group, access the group global variables, read the tableof TCP connections, and change the state of a TCP connection.  For a broaderdescription of MIB-II services, see the manual entry for m2Lib.To use this feature, include the following component:INCLUDE_MIB2_TCPUSING THIS LIBRARYThis library can be initialized and deleted by calling m2TcpInit() andm2TcpDelete() respectively, if only the TCP group's services are needed.If full MIB-II support is used, this group and all other groups can beinitialized and deleted by calling m2Init() and m2Delete().The group global variables are accessed by callingm2TcpGroupInfoGet() as follows:.CS    M2_TCP   tcpVars;    if (m2TcpGroupInfoGet (&tcpVars) == OK)	/@ values in tcpVars are valid @/.CEThe TCP table of connections can be accessed in lexicographical order.  Thefirst entry in the table can be accessed by setting the table index tozero.  Every other entry thereafter can be accessed by passing tom2TcpConnTblEntryGet() the index retrieved in the previous invocationincremented to the next lexicographical value by givingM2_NEXT_VALUE as the search parameter.  For example:.CSM2_TCPCONNTBL  tcpEntry;    /@ Specify a zero index to get the first entry in the table @/    tcpEntry.tcpConnLocalAddress = 0; /@ Local IP address in host byte order @/    tcpEntry.tcpConnLocalPort    = 0; /@ Local TCP port                    @/    tcpEntry.tcpConnRemAddress   = 0; /@ remote IP address                 @/    tcpEntry.tcpConnRemPort      = 0; /@ remote TCP port in host byte order  @/    /@ get the first entry in the table @/    if ((m2TcpConnTblEntryGet (M2_NEXT_VALUE, &tcpEntry) == OK)	/@ values in tcpEntry in the first entry are valid  @/    /@ process first entry in the table @/    /@      * For the next call, increment the index returned in the previous call.     * The increment is to the next possible lexicographic entry; for     * example, if the returned index was 147.11.46.8.2000.147.11.46.158.1000     * the index passed in the next invocation should be      * 147.11.46.8.2000.147.11.46.158.1001.  If an entry in the table     * matches the specified index, then that entry is returned.       * Otherwise the closest entry following it, in lexicographic order,     * is returned.     @/    /@ get the second entry in the table @/    if ((m2TcpConnTblEntryGet (M2_NEXT_VALUE, &tcpEntry) == OK)	/@ values in tcpEntry in the second entry are valid  @/.CEThe TCP table of connections allows only for a connection to be deleted asspecified in the MIB-II.  For example: .CS    M2_TCPCONNTBL  tcpEntry;    /@ Fill in the index for the connection to be deleted in the table @/    /@ Local IP address in host byte order, and local port number @/    tcpEntry.tcpConnLocalAddress = 0x930b2e08;    tcpEntry.tcpConnLocalPort    = 3000;    /@ Remote IP address in host byte order, and remote port number @/    tcpEntry.tcpConnRemAddress   = 0x930b2e9e;    tcpEntry.tcpConnRemPort      = 3000;    tcpEntry.tcpConnState        = 12;	/@ MIB-II state value for delete @/    /@ set the entry in the table @/    if ((m2TcpConnTblEntrySet (&tcpEntry) == OK)	/@ tcpEntry deleted successfuly @/.CEINCLUDE FILES: m2Lib.h SEE ALSO:m2Lib, m2IfLib, m2IpLib, m2IcmpLib, m2UdpLib, m2SysLib*//* includes */#include "vxWorks.h"#include "m2Lib.h"#include <socket.h>#include <net/route.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <netinet/tcp_timer.h>#include <netinet/tcp_fsm.h>#include <netinet/tcp_var.h>#include <netinet/tcp_timer.h>#include <netinet/in_pcb.h>#include <net/protosw.h>#include <private/iosLibP.h>#ifdef VIRTUAL_STACK#include "netinet/vsLib.h"#endif/* defines *//* MIB-II TCP state definitions */#define M2TCP_CLOSED        1#define M2TCP_LISTEN        2#define M2TCP_SYNSENT       3#define M2TCP_SYNRECEIVED   4#define M2TCP_ESTABLISHED   5#define M2TCP_FINWAIT1      6#define M2TCP_FINWAIT2      7#define M2TCP_CLOSEWAIT     8#define M2TCP_LASTACK       9#define M2TCP_CLOSING       10#define M2TCP_TIMEWAIT      11#define M2TCP_DELETETCB     12/* globals *//*  * This table maps the BSD TCP states to the MIB-II TCP specified states. The * table is indexed using the BSD TCP states. */LOCAL long m2TcpStates [TCP_NSTATES] =	{	M2TCP_CLOSED,            /* TCPS_CLOSED       -> M2TCP_CLOSED */	M2TCP_LISTEN,            /* TCPS_LISTEN       -> M2TCP_LISTEN */	M2TCP_SYNSENT,           /* TCPS_SYN_SENT     -> M2TCP_SYNSENT */	M2TCP_SYNRECEIVED,       /* TCPS_SYN_RECEIVED -> M2TCP_SYNRECEIVED */	M2TCP_ESTABLISHED,       /* TCPS_ESTABLISHED  -> M2TCP_ESTABLISHED */	M2TCP_CLOSEWAIT,         /* TCPS_CLOSE_WAIT   -> M2TCP_CLOSEWAIT */	M2TCP_FINWAIT1,          /* TCPS_FIN_WAIT_1   -> M2TCP_FINWAIT1  */	M2TCP_CLOSING,           /* TCPS_CLOSING      -> M2TCP_CLOSING */	M2TCP_LASTACK,           /* TCPS_LAST_ACK     -> M2TCP_LASTACK */	M2TCP_FINWAIT2,          /* TCPS_FIN_WAIT_2   -> M2TCP_FINWAIT2 */        M2TCP_TIMEWAIT,          /* TCPS_TIME_WAIT    -> M2TCP_TIMEWAIT */	};/********************************************************************************* m2TcpInit - initialize MIB-II TCP-group access** This routine allocates the resources needed to allow access to the TCP * MIB-II variables.  This routine must be called before any TCP variables* can be accessed.** RETURNS: OK, always.** SEE ALSO: * m2TcpGroupInfoGet(), m2TcpConnEntryGet(), m2TcpConnEntrySet(), m2TcpDelete()*/STATUS m2TcpInit (void)    {    return (OK);    }/******************************************************************************** m2TcpGroupInfoGet - get MIB-II TCP-group scalar variables** This routine fills in the TCP structure pointed to by <pTcpInfo> with the* values of MIB-II TCP-group scalar variables.** RETURNS: OK, or ERROR if <pTcpInfo> is not a valid pointer.** ERRNO:* S_m2Lib_INVALID_PARAMETER** SEE ALSO: * m2TcpInit(), m2TcpConnEntryGet(), m2TcpConnEntrySet(), m2TcpDelete()*/STATUS m2TcpGroupInfoGet    (    M2_TCPINFO * pTcpInfo 	/* pointer to the TCP group structure */    )    {    int            netLock;     /* Use to secure the Network Code Access */    struct inpcb * pInpCb;	/* Ptr to an internet control block */    struct tcpcb * pTcpCb;	/* Ptr to a TCP connection control block */     /* Validate Pointer to TCP structure */     if (pTcpInfo == NULL)	{	errnoSet (S_m2Lib_INVALID_PARAMETER);        return (ERROR);	}     netLock = splnet ();        /* Get exclusive access to Network Code */    /* Traverse the list of TCP control block and count the # of connections */#ifdef VIRTUAL_STACK    /*     * To avoid introducing a conflict with the "tcpcb" structure tag,     * virtual stacks do not alias the head of the pcb list.     */    for (pInpCb = tcb.lh_first, pTcpInfo->tcpCurrEstab = 0;#else    for (pInpCb = tcpcb.lh_first, pTcpInfo->tcpCurrEstab = 0;#endif /* VIRTUAL_STACK */         pInpCb != NULL; pInpCb = pInpCb->inp_list.le_next)        {        /* Get TCP Connection control structure */         pTcpCb = (struct tcpcb *) pInpCb->inp_ppcb;         if ((pTcpCb->t_state == TCPS_ESTABLISHED) ||            (pTcpCb->t_state == TCPS_CLOSE_WAIT))            pTcpInfo->tcpCurrEstab++;        }     splx (netLock);             /* Give up exclusive access to Network Code */     pTcpInfo->tcpRtoAlgorithm           = M2_tcpRtoAlgorithm_vanj;    pTcpInfo->tcpRtoMin                 = (TCPTV_MIN * 1000) / PR_SLOWHZ;    pTcpInfo->tcpRtoMax                 = (TCPTV_REXMTMAX * 1000) / PR_SLOWHZ;     /* The Maximum number of TCP connections is determined Dynamically == -1 */     pTcpInfo->tcpMaxConn                = -1;     pTcpInfo->tcpActiveOpens            = tcpstat.tcps_connattempt;    pTcpInfo->tcpPassiveOpens           = tcpstat.tcps_accepts;    pTcpInfo->tcpAttemptFails           = tcpstat.tcps_conndrops;    pTcpInfo->tcpEstabResets            = tcpstat.tcps_drops;    pTcpInfo->tcpInSegs                 = tcpstat.tcps_rcvtotal;     pTcpInfo->tcpOutSegs                = tcpstat.tcps_sndtotal -                                          tcpstat.tcps_sndrexmitpack -                                          tcpstat.tcps_persisttimeo;     pTcpInfo->tcpRetransSegs            = tcpstat.tcps_sndrexmitpack;     pTcpInfo->tcpInErrs                 = tcpstat.tcps_rcvbadsum +                                          tcpstat.tcps_rcvbadoff +                                          tcpstat.tcps_rcvshort;#ifdef VIRTUAL_STACK    /*     * (Former) tcpOutRsts global renamed for virtual stacks to prevent     * name conflict with existing structure element.     */    pTcpInfo->tcpOutRsts                = tcpOutResets;#else    pTcpInfo->tcpOutRsts                = tcpOutRsts;#endif    return (OK);    }/******************************************************************************** tcpConnCmp -  compare two TCP connections in lexicographical order** This routine compares two TCP connection control blocks.  It compares the* value 1 with value 2.  It returns equal, value 1 greater than * value 2, or value 1 less than value 2.  The comparison is done based on the* lexicographical order specified by MIB-II.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久人人做人人爱| 色欧美日韩亚洲| 精品蜜桃在线看| 久久99国产精品久久99| 欧美sm极限捆绑bd| 成人精品视频.| 国产精品欧美一区二区三区| 91在线看国产| 亚洲夂夂婷婷色拍ww47| 日韩欧美激情在线| 99久久综合狠狠综合久久| 亚洲精品自拍动漫在线| 欧美一区二区精品久久911| 国内精品国产成人| 国产精品久久99| 91.麻豆视频| 成人自拍视频在线| 亚洲丰满少妇videoshd| 久久新电视剧免费观看| 91免费观看在线| 免费观看成人av| 亚洲欧洲日产国码二区| 欧美精品一二三| 粉嫩蜜臀av国产精品网站| 亚洲国产精品影院| 中文在线一区二区| 欧美精品自拍偷拍动漫精品| 国产成人午夜精品影院观看视频 | 一区二区在线免费观看| 欧美剧在线免费观看网站| 国产精品一级黄| 亚洲永久精品国产| 国产日韩精品一区二区三区在线| 91久久精品午夜一区二区| 久久69国产一区二区蜜臀| 亚洲精品乱码久久久久久久久| 欧美一区二区三区公司| 99久久国产免费看| 黄色成人免费在线| 亚洲一区在线看| 欧美极品aⅴ影院| 91精品国产综合久久久蜜臀粉嫩| 国产成a人无v码亚洲福利| 天天影视网天天综合色在线播放| 国产精品日日摸夜夜摸av| 精品久久五月天| 69久久夜色精品国产69蝌蚪网| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 综合电影一区二区三区| 欧美v日韩v国产v| 欧美日韩国产成人在线91| 一本久道久久综合中文字幕| 国产麻豆视频精品| 美女视频黄免费的久久| 五月天一区二区| 亚洲午夜一二三区视频| 亚洲精品免费在线播放| 国产精品卡一卡二| 欧美极品另类videosde| 久久精品日产第一区二区三区高清版| 欧美日高清视频| 欧美偷拍一区二区| 欧美综合亚洲图片综合区| 95精品视频在线| a在线播放不卡| 成人av综合一区| 成人av在线资源网| 成人丝袜高跟foot| 国产一区二区不卡在线| 久久精品国产99国产| 蜜臀av一区二区| 日本亚洲一区二区| 久久国产精品99精品国产| 秋霞午夜鲁丝一区二区老狼| 日韩vs国产vs欧美| 男人的天堂久久精品| 奇米色一区二区三区四区| 日韩av电影免费观看高清完整版| 五月天一区二区| 久久精品国产精品亚洲红杏| 国产一区二区三区在线观看精品 | 成人激情免费网站| 成人免费黄色在线| av亚洲精华国产精华精| eeuss鲁一区二区三区| 91丨九色丨蝌蚪丨老版| 在线区一区二视频| 欧美人妇做爰xxxⅹ性高电影 | 一区二区在线观看视频| 亚洲在线视频一区| 日韩精品视频网站| 日韩av在线播放中文字幕| 麻豆成人av在线| 国产高清在线观看免费不卡| 成人丝袜高跟foot| 欧美亚洲愉拍一区二区| 欧美日韩dvd在线观看| 日韩欧美一区二区在线视频| 久久综合色天天久久综合图片| 国产日韩欧美综合在线| 18涩涩午夜精品.www| 亚洲国产日韩在线一区模特 | 国内偷窥港台综合视频在线播放| 国产永久精品大片wwwapp| thepron国产精品| 欧美日韩国产高清一区二区| 精品sm捆绑视频| 亚洲丝袜制服诱惑| 三级在线观看一区二区| 国产一区二区看久久| 91福利国产成人精品照片| 91精品国产综合久久久久久| 国产人成一区二区三区影院| 夜夜嗨av一区二区三区| 国产中文字幕一区| 欧美做爰猛烈大尺度电影无法无天| 日韩一区二区三区四区五区六区| 国产精品区一区二区三区| 日日摸夜夜添夜夜添亚洲女人| 国产成人欧美日韩在线电影| 欧美午夜精品电影| 久久精品一级爱片| 天天免费综合色| 99精品久久久久久| 精品久久久久久久久久久院品网| 亚洲精品高清视频在线观看| 国产一级精品在线| 欧美人伦禁忌dvd放荡欲情| 国产精品乱码人人做人人爱| 日韩高清在线不卡| 一本一道综合狠狠老| 久久久久久久精| 日韩高清不卡一区| 在线观看国产日韩| 国产精品久线在线观看| 国产在线一区二区综合免费视频| 欧美伊人精品成人久久综合97| 久久尤物电影视频在线观看| 午夜亚洲国产au精品一区二区 | 色拍拍在线精品视频8848| 久久久精品日韩欧美| 美国一区二区三区在线播放| 欧美自拍偷拍一区| 亚洲丝袜制服诱惑| 成人福利视频在线看| 久久蜜臀精品av| 激情欧美一区二区三区在线观看| 欧美男同性恋视频网站| 一区二区日韩电影| 9i在线看片成人免费| 日本一区二区三区高清不卡| 极品尤物av久久免费看| 日韩三级视频在线看| 奇米四色…亚洲| 欧美一区二区久久| 美脚の诱脚舐め脚责91 | 欧美激情中文字幕一区二区| 免费看欧美美女黄的网站| 制服.丝袜.亚洲.中文.综合| 亚洲高清视频中文字幕| 欧美日韩精品电影| 亚洲国产成人av| 欧美日韩精品专区| 日本成人在线电影网| 欧美群妇大交群的观看方式| 亚洲成人激情自拍| 欧美日韩中文一区| 亚洲国产va精品久久久不卡综合| 欧美中文字幕一区二区三区| 亚洲主播在线观看| 欧美精品日韩一区| 日韩高清在线电影| 精品三级av在线| 国产精品影视天天线| 国产清纯白嫩初高生在线观看91 | 一区二区三区精品视频在线| 一本色道**综合亚洲精品蜜桃冫 | 欧美不卡在线视频| 精品一二三四区| 国产亚洲一区字幕| eeuss鲁一区二区三区| 亚洲乱码中文字幕| 欧美女孩性生活视频| 久久 天天综合| 国产精品女上位| 在线精品视频免费观看| 三级成人在线视频| 国产亚洲精品7777| 99国产欧美久久久精品| 午夜国产精品一区| 久久天堂av综合合色蜜桃网| 国产91清纯白嫩初高中在线观看 | 久久一区二区视频| 99久久免费精品| 亚洲国产成人porn| 久久久久久久久久久黄色| 一本久久精品一区二区| 人妖欧美一区二区| 最新国产の精品合集bt伙计| 欧美三级视频在线观看|