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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? riplib.c

?? vxwork源代碼
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
    FD_ZERO (&ibits);    nfd = max (ripState.s, ripState.routeSocket) + 1;	/* 1 + max (fd's) */    for (;;)        {        FD_SET (ripState.s, &ibits);        FD_SET (ripState.routeSocket, &ibits);        if (ripState.needupdate)            {            /*             * Changes to the routing table entries occurred within the             * mandatory (random) quiet period following an earlier             * triggered update. Set the selection interval for incoming              * messages to the remaining delay so that the pending              * (cumulative) triggered update will be sent on schedule.             */            pTimeout = &waittime;            waittime = ripState.nextbcast;            timevalsub (&waittime, &ripState.now);            if (waittime.tv_sec < 0)                {                /*                  * The scheduled update time has passed. Just poll the                 * interface before sending the triggered update.                 */                waittime.tv_sec = 0;                waittime.tv_usec = 0;                }            if (routedDebug)                logMsg ("Pending dynamic update scheduled in %d/%d sec/usec\n",                        waittime.tv_sec, waittime.tv_usec, 0, 0, 0, 0);            }        else            {            /*              * No triggered updates are pending. Wait for              * messages indefinitely.              */            pTimeout = (struct timeval *)NULL;            }        n = select (nfd, &ibits, 0, 0, pTimeout);        if (n <= 0)            {            /*             * No input received during specified interval: generate              * (delayed) triggered update if needed. Ignore all other              * errors (e.g. EINTR).             */            if (n < 0)                {                if (errno == EINTR)                    continue;                if (routedDebug)                    logMsg ("Error %d (%x) from select call",                             n, errno, 0, 0, 0, 0);                }            /* Block timer task to prevent overlapping updates. */            semTake (ripLockSem, WAIT_FOREVER);            if (n == 0 && ripState.needupdate)                {                /*                  * The pending triggered update was not subsumed by a                 * regular update during the selection interval. Send it                 * and reset the update flag and timers.                 */                if (routedDebug)                    logMsg ("send delayed dynamic update\n", 0, 0, 0, 0, 0, 0);                ripTimeSet (&ripState.now);                toall (supply, RTS_CHANGED, (struct interface *)NULL);                ripState.lastbcast = ripState.now;                ripState.needupdate = 0;                ripState.nextbcast.tv_sec = 0;                }            semGive (ripLockSem);            continue;            }        ripTimeSet (&ripState.now);        /*          * Block the timer task to prevent overlapping updates or         * route addition/deletion during          * processing of RIP and route messages.         */        semTake  (ripLockSem, WAIT_FOREVER);        /* If RIP messages have arrived, process them */        if (FD_ISSET (ripState.s, &ibits))            process (ripState.s);        semGive (ripLockSem);#ifdef ROUTER_STACK        /* If there are any routing messages, process them */        if (FD_ISSET (ripState.routeSocket, &ibits))            ripRouteMsgProcess ();#endif /* ROUTER_STACK */	}    }void timevaladd (t1, t2)	struct timeval *t1, *t2;{	t1->tv_sec += t2->tv_sec;	if ((t1->tv_usec += t2->tv_usec) > 100000) {		t1->tv_sec++;		t1->tv_usec -= 1000000;	}}void timevalsub (t1, t2)	struct timeval *t1, *t2;{	t1->tv_sec -= t2->tv_sec;	if ((t1->tv_usec -= t2->tv_usec) < 0) {		t1->tv_sec--;		t1->tv_usec += 1000000;	}}/******************************************************************************** ripTimeSet - update a RIP timer** This routine sets the various RIP timers used to track periodic updates* to the elapsed time since startup. Because all events use relative* times, the actual (calendar) time is not necessary.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void ripTimeSet    (    struct timeval * 	pTimer 		/* destination for timestamp */    )     {    int clockrate;    ULONG tickcount;    tickcount = tickGet ();    clockrate = sysClkRateGet ();    pTimer->tv_sec = tickcount / clockrate;    pTimer->tv_usec = (1000000 * tickcount % clockrate) / clockrate;    return;    }void process (fd)	int fd;{	struct sockaddr from;	int fromlen, cc;	union {		char	buf[MAXPACKETSIZE+1];		RIP_PKT rip;	} inbuf;        bzero ((char *)&from, sizeof (from));	for (;;) {		fromlen = sizeof (from);		cc = recvfrom (fd, (char *)&inbuf, sizeof (inbuf), 0,                                &from, &fromlen);		if (cc <= 0) {			if (cc < 0 && errno != EWOULDBLOCK)                            {                            if (routedDebug)				logMsg ("Error %d (%x) reading RIP message.\n",                                        cc, errno, 0, 0, 0, 0);                            }			break;		}		if (fromlen != sizeof (struct sockaddr_in))			break;		routedInput (&from, &inbuf.rip, cc);	}}/******************************************************************************** _ripAddrsXtract - extract socket addresses** This routine is a copy of the rt_xaddrs() routine in rtsock.c* Copied here so that RIP can access it from a non-kernel domain* it basicaly fills in the rti_info array with pointers to the* sockaddr structures denoted by the rti_addrs field.* The sockaddr structures themselves start at <cp> and end at <cpLim>.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void _ripAddrsXtract    (    caddr_t		cp,    caddr_t		cpLim,     struct rt_addrinfo *	pRtInfo    )     {    register struct sockaddr *	pSockAddr;     register int 			i;     bzero ((char *)pRtInfo->rti_info, sizeof (pRtInfo->rti_info));    for (i = 0; (i < RTAX_MAX) && (cp < cpLim); i++)         {        if ((pRtInfo->rti_addrs & (1 << i)) == 0)            continue;        pRtInfo->rti_info[i] = pSockAddr = (struct sockaddr *)cp;        if (pSockAddr->sa_len == 0)            pRtInfo->rti_info[i] = NULL;        ADVANCE (cp, pSockAddr);        }    }/******************************************************************************** ripAddrsXtract - extract socket address pointers from the route message** This routine extracts the socket addresses from the route message in * <pRtInfo> and uses the other parameters to return pointers to the * extracted messages.* \is* \i <pRtInfo>* Passes in a pointer to a route information message. * \i <pDstAddr>    * Returns a pointer to the destination address.* \i <pNetmask>    * Returns a pointer to the netmask.* \i <pGateway>    * Returns a pointer to the gateway address.* \i <pOldGateway>  * Returns a pointer to the OLD gateway address if it exists.* \ie*              * If the route message doesn't specify an address, the corresponding* address pointer is set to NULL** RETURNS: N/A** ERRNO: N/A*/void ripAddrsXtract    (    ROUTE_INFO *	pRtInfo,	/* Route information message */    struct sockaddr **	pDstAddr,	/* Where to store the Destination addr                                           pointer */    struct sockaddr **	pNetmask,	/* Where to store the netmask pointer*/    struct sockaddr **	pGateway,	/* Where to store the Gateway addr                                           pointer */    struct sockaddr **	pOldGateway	/* Where to store the Old gateway addr                                           (if any) pointer */    )     {    struct rt_addrinfo		rtInfo;     /* First extract pointers to the addresses into the info structure */    rtInfo.rti_addrs = pRtInfo->rtm.rtm_addrs;    _ripAddrsXtract ((caddr_t)pRtInfo->addrs,                      (caddr_t)&pRtInfo->addrs[RTAX_MAX],                      &rtInfo);     /* Now set the users's pointers to point to the addresses */    *pDstAddr = INFO_DST (&rtInfo);    *pNetmask = INFO_MASK (&rtInfo);    *pGateway = INFO_GATE (&rtInfo);    *pOldGateway = INFO_AUTHOR (&rtInfo);    }/******************************************************************************** ripSockaddrPrint - print a sockaddr structure** This routine is a copy of the db_print_sa() routine in if_ether.c* Copied here so that RIP can access it from a non-kernel domain.* It prints out the sockaddr structure pointed to by <pSockAddr>** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void ripSockaddrPrint    (    struct sockaddr *	pSockAddr	/* Sockaddr to be printed */    )    {    int 		len;    u_char *	p;    if (pSockAddr == 0)         {        printf ("[NULL]\n");        return;        }    p = (u_char *)pSockAddr;    len = pSockAddr->sa_len;    printf ("[");    while (len > 0)         {        printf ("%d", *p);        p++; len--;        if (len)             printf (",");        }    printf ("]\n");    }#ifdef ROUTER_STACK/***************************************************************************** ripRouteMsgProcess - Process the routing socket messages** This function retrieves the messages from the routing sockets * and processes them. It handles the following messages:** RTM_IFINFO:*       This message indicates if an interface has been brought up or down.*       If the interface is brought up, this routine does the following:*         For all interfaces that match the name, it marks the interface UP*         and adds the interface route.*         Then it calls the routedIfInit() call to pick up any addresses that*         were added to the interface when the interface was down*       If the interface is brought down, this routine does the following:*         For all interfaces that match the name, it marks the interface DOWN.*         Routes passing through the interface are deleted except the*         routes we learned through the Routing socket messages. Those routes

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人国产电影网| 99国产欧美另类久久久精品| 亚洲国产成人午夜在线一区| 欧美日韩小视频| 国产一区欧美二区| 亚洲一区二区三区小说| 久久久久久久综合日本| 欧美视频在线观看一区| 99国产精品久久久久| 国产精品一二三区在线| 91麻豆免费视频| 亚洲一区二区中文在线| 国产精品国产三级国产普通话三级 | 在线观看日韩一区| 成人网页在线观看| 国产在线精品免费| 老司机免费视频一区二区三区| 一区二区三区成人| 亚洲靠逼com| 亚洲欧美日韩国产另类专区| 欧美激情在线一区二区| 国产丝袜欧美中文另类| 亚洲精品在线网站| 日韩女优毛片在线| 日韩午夜激情免费电影| 欧美一级欧美一级在线播放| 欧美日精品一区视频| 欧美色男人天堂| 色8久久人人97超碰香蕉987| 欧美综合在线视频| 精品视频在线免费观看| 欧美精品 国产精品| 欧美伊人久久久久久久久影院| 欧美三级蜜桃2在线观看| 日韩欧美国产精品一区| 精品污污网站免费看| 日韩一区二区在线看| 日韩欧美在线综合网| 久久久精品免费免费| 中文字幕欧美国产| 亚洲精品国产精品乱码不99| 亚洲一区二区三区小说| 全部av―极品视觉盛宴亚洲| 国产尤物一区二区在线| 国产日韩精品一区二区浪潮av| 日韩欧美一二区| 国产欧美日韩久久| 亚洲一级片在线观看| 久久精品国内一区二区三区| 成人免费黄色在线| 欧美午夜精品一区二区三区| 久久久久国产成人精品亚洲午夜| 国产精品伦一区二区三级视频| 亚洲免费观看高清完整版在线观看| 天堂精品中文字幕在线| 国产精品小仙女| 欧美三区免费完整视频在线观看| 久久精品日韩一区二区三区| 亚洲国产中文字幕| 丁香六月综合激情| 日韩欧美一级片| 亚洲三级电影全部在线观看高清| 亚洲成a人在线观看| 成人av网站在线| 欧美电视剧免费观看| 亚洲精品网站在线观看| 国产精品一区二区男女羞羞无遮挡| 欧美日韩一区高清| 欧美激情一区在线| 久久精品国产色蜜蜜麻豆| 在线精品国精品国产尤物884a| 欧美国产激情一区二区三区蜜月| 免费在线观看成人| 欧美性猛片xxxx免费看久爱| 国产日产欧产精品推荐色| 青青草国产成人99久久| 欧美精品18+| 日韩不卡一区二区| 9191成人精品久久| 亚洲国产日韩一级| 色婷婷av久久久久久久| 国产精品不卡一区二区三区| 国产91露脸合集magnet | 99热在这里有精品免费| 蜜臀91精品一区二区三区| 欧美专区在线观看一区| 一区二区三区在线观看国产| 91网站最新网址| 日韩毛片在线免费观看| 91美女精品福利| 综合av第一页| 欧美三级在线视频| 三级精品在线观看| 日韩精品最新网址| 国产一区二区三区视频在线播放| 精品剧情在线观看| 国产一区二区三区久久久| 国产午夜一区二区三区| av不卡免费电影| 亚洲一区二区中文在线| 日韩欧美高清dvd碟片| 国产一区二区视频在线| 国产亚洲综合色| av不卡一区二区三区| 一区二区三区色| 日韩欧美在线综合网| 高清成人在线观看| 亚洲高清免费视频| 欧美电影在线免费观看| 国产激情一区二区三区桃花岛亚洲 | 国产网站一区二区| 91极品视觉盛宴| 久久精品国产澳门| 久久精品水蜜桃av综合天堂| 色综合久久综合网欧美综合网| 丝袜诱惑亚洲看片| 中文子幕无线码一区tr| 欧美日韩一区不卡| 国产精品99久久久久| 亚洲综合丁香婷婷六月香| 精品少妇一区二区三区在线视频| 91日韩在线专区| 国产一区二区三区四区在线观看| 亚洲精品水蜜桃| 精品国产乱码久久久久久久久| 97se亚洲国产综合自在线| 精品制服美女丁香| 亚洲第四色夜色| 亚洲激情图片一区| 欧美激情一区二区在线| 欧美一区二区三区四区在线观看 | 久久人人超碰精品| 欧美亚洲国产一区二区三区| 精品一区二区在线视频| 一区二区三区色| 久久国产精品一区二区| 亚洲成人综合视频| 一区二区在线观看免费视频播放| 久久精品人人做人人爽97| 4438成人网| 欧美日韩午夜在线| 色综合天天综合色综合av| 国产91丝袜在线观看| 粉嫩一区二区三区在线看| 国产麻豆91精品| 国产一区二区福利| 国产传媒日韩欧美成人| 丁香一区二区三区| 99视频在线精品| av综合在线播放| eeuss鲁一区二区三区| 成人av免费网站| 色综合天天综合网天天看片| 在线影视一区二区三区| 99re这里都是精品| 欧美日本一区二区三区四区| 欧美性受极品xxxx喷水| 欧美二区三区的天堂| 日韩三级视频在线看| 欧美一区二区三区小说| 久久久久久黄色| 成人欧美一区二区三区| 一区二区激情视频| 五月婷婷综合网| 精品在线播放午夜| 国产成人av一区二区三区在线观看| 成人久久18免费网站麻豆| 在线中文字幕一区| 51精品视频一区二区三区| 日韩欧美国产电影| 国产精品成人免费| 免费人成网站在线观看欧美高清| 黄一区二区三区| 国产免费观看久久| 亚洲永久精品国产| 狠狠色丁香久久婷婷综| 色一情一乱一乱一91av| 欧美变态tickle挠乳网站| 久久久久成人黄色影片| 亚洲成人资源在线| 成人黄色大片在线观看| 9191久久久久久久久久久| 中日韩av电影| 美日韩一级片在线观看| 色中色一区二区| 国产亚洲成av人在线观看导航| 一区二区三区免费| 国产精品自在欧美一区| 欧美三级在线看| 亚洲精品免费在线观看| 懂色av噜噜一区二区三区av| 欧美一区二区视频观看视频| 自拍偷在线精品自拍偷无码专区| 久久99国内精品| 91精品国产高清一区二区三区蜜臀| 中文字幕永久在线不卡| 国产米奇在线777精品观看| 日韩一级视频免费观看在线| 亚洲国产va精品久久久不卡综合| 成人app网站|