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

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

?? input.c

?? rip路由在vxworks上的實現源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
                    {                    /*                      * If the metric changed then we should change our                      * route. Also if this is a valid update with                      * metric of 15 and we have already deleted the                      * route from the routing database we should                      * revalidate the route in our table and add it                      * back to the system database                      */                    if ((n->rip_metric != rt->rt_metric) ||                         (n->rip_metric == HOPCNT_INFINITY))                         {                        /*                          * If this is a repeat advertisement of an                          * unreachable destination, ignore it.                          * Ignore it also if we have already expired                          * this route and are being informed that it                          * has expired. We have acted on it once already.                          */                        if ((origMetric == HOPCNT_INFINITY) &&                             (rt->rt_metric == HOPCNT_INFINITY) &&                             !rt->inKernel &&                             (rt->rt_timer >= ripState.expire))                             break;			/*			 * If the advertised metric is (HOPCNT_INFINITY -1),			 * a valid metric, check to see what we should			 * do with it. If we already have the route			 * in the system table, reset the timer,			 * else trick rtchange() into adding the route back			 */			if (origMetric == (HOPCNT_INFINITY - 1))			    {			    if (rt->inKernel)                                 {                                rt->rt_timer = 0;                                 /* Update age for IP group MIB. */                                 ripRouteAgeUpdate (rt);                                break;                                }                             else                                 n->rip_metric++;                            }                        if (rip->rip_vers > 1)                            {                            rtchange(rt, &gateway, n->rip_metric,                                     &netmask, tag, 0, NULL);                            }                        else                            {                            rtchange(rt, from, n->rip_metric, NULL, 0, 0,                                      NULL);                            }                        changes++;                        rt->rt_timer = 0;                        if (origMetric == HOPCNT_INFINITY)                            rt->rt_timer = ripState.expire;                        else if (rt->inKernel)                             {                            /* Update age for IP group MIB. */                             ripRouteAgeUpdate (rt);                            }                        }                    else if (rt->rt_metric < HOPCNT_INFINITY)                        {                        rt->rt_timer = 0;                        /* Update age for IP group MIB. */                        if (rt->inKernel)                             ripRouteAgeUpdate (rt);                         /*                         * Metric is same. Check if either the next hop                         * or the tag changed, for a V2 packet. If it did,                         * we need to record the change                         */                        if ((rip->rip_vers > 1) &&                             ((((RIP2PKT *)n)->tag != rt->rt_tag) ||                              (memcmp(&gateway, &(rt->rt_router),                                      sizeof(gateway)) != 0)))                             {                            rtchange(rt, &gateway, n->rip_metric,                                     &netmask, tag, 0, NULL);                            }                        }                    }                else if ((unsigned) n->rip_metric < rt->rt_metric ||                         (rt->rt_metric == n->rip_metric &&                          rt->rt_timer > (ripState.expire/2) &&                          (unsigned) origMetric < HOPCNT_INFINITY))                    {                    if (rip->rip_vers > 1)                        {                        rtchange(rt, &gateway, n->rip_metric,                                 &netmask, tag,                                  ((struct sockaddr_in *)from)->                                 sin_addr.s_addr, NULL);                        }                    else                        {                        rtchange(rt, from, n->rip_metric, NULL, 0,                                 ((struct sockaddr_in *)from)->                                 sin_addr.s_addr, NULL);                        }                    changes++;                    rt->rt_timer = 0;                    /* Update age for IP group MIB. */                    if (rt->inKernel)                         ripRouteAgeUpdate (rt);                     }                }            break;        default:            /*              * Ignore any unrecognized commands. Return from the routine             * to prevent any possibility of scheduling a triggered update.             */            pErrorIfp->ifStat.rip2IfStatRcvBadPackets++;            return;          }        /*     * This section of code schedules triggered updates whenever entries in     * the routing table change. No updates are sent for silent RIP     * configurations and are also suppressed if a regular update will     * occur within the next MAX_WAITTIME seconds.     */    if (changes && ripState.supplier &&        ripState.now.tv_sec - ripState.lastfullupdate.tv_sec <             ripState.supplyInterval - MAX_WAITTIME)        {        /*         * No regular update is imminent. Check the elapsed time since         * the previous (regular or triggered) update and the time limit         * of the "nextbcast" quiet period which restricts the update         * frequency.          */        if (ripState.now.tv_sec - ripState.lastbcast.tv_sec >= MIN_WAITTIME            && (ripState.nextbcast.tv_sec < ripState.now.tv_sec))            {            /*             * All conditions have been met. Send a triggered update over the              * interfaces which did not receive the RIP response. The message              * sent over each interface only includes routes which changed              * since the last message sent.             */            if (routedDebug)                logMsg ("send dynamic update\n", 0, 0, 0, 0, 0, 0);            ifp->ifStat.rip2IfStatSentUpdates++;            toall (supply, RTS_CHANGED, ifp);            ripState.lastbcast = ripState.now;            ripState.needupdate = 0;            ripState.nextbcast.tv_sec = 0;            }        else            {            /*             * The triggered update can't be sent because of frequency              * limitations imposed to prevent excessive network traffic.             * Set the delayed update indicator so that the update will             * be sent when possible.             */            ripState.needupdate++;            }                if (ripState.nextbcast.tv_sec == 0)            {            /*             * Select the earliest possible time for the next triggered              * update. A random value is used to avoid periodic network             * congestion from synchronized routers.             */            u_long delay = RANDOMDELAY();            ripState.nextbcast.tv_sec = delay / 1000000;            ripState.nextbcast.tv_usec = delay % 100000;            timevaladd (&ripState.nextbcast, &ripState.now);            /*             * If the earliest allowable update occurs within MIN_WAITTIME              * seconds before the next regular update, force the delay past              * that point to avoid a redundant triggered update.             */            if (ripState.nextbcast.tv_sec >                ripState.lastfullupdate.tv_sec +                ripState.supplyInterval - MIN_WAITTIME)                {                ripState.nextbcast.tv_sec =                    ripState.lastfullupdate.tv_sec +                    ripState.supplyInterval + 1;                }            }        }    }/*  * This pseudo-random number generator restricts the frequency of triggered * updates. It was plagiarized shamelessly from FreeBSD 2.1.7 where it was  * used for the same purpose by routed. */LOCAL u_long ripRandTime (void)    {    register long x, hi, lo, t;    /*     * Compute x[n + 1] = (7^5 * x[n]) mod (2^31 - 1).    * From "Random number generators: good ones are hard to find",     * Park and Miller, Communications of the ACM, vol. 31, no. 10,     * October 1988, p. 1195.     */    x = ripRandTimeSeed;    hi = x / 127773;    lo = x % 127773;    t = 16807 * lo - 2836 * hi;    if (t <= 0)        t += 0x7fffffff;    ripRandTimeSeed = t;    return (t);    }/****************************************************************************** ripRouteAgeUpdate - update the age for the RIP route** This routine updates the age of the RIP route that is kept in the* system Routing database.* The parameter <pRtEntry> describes the RIP route that is kept in RIP's* private database.** This routine constructs a ROUTE DESCRIPTOR structure from the supplied* parameter <pRtEntry> that describes the route whose age is to be updated* and calls the routing extensions function routeAgeSet() to set the new* age. tickGet() is used to get the current tick count and is used as the* new age.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/LOCAL void ripRouteAgeUpdate     (    struct rt_entry *	pRtEntry	/* Route entry describing the */    					/* RIP route to update */    )    {    struct sockaddr_in *	pDsin;    struct sockaddr_in * pGsin;    struct sockaddr_in * pNsin;        /*     * Retrieve the destination and netmask values from the     * corresponding fields in the RIP route entry structure     */    ripRouteToAddrs (pRtEntry, &pDsin, &pGsin, &pNsin);    /*      * If it is a host route, set netmask to NULL. RIP internally     * assigns a host route the netmask of the interface. But the system     * overrides that and stores the route as a host route with a NULL mask.     * (which is the right thing to do). So we set the netmask field to     * NULL so that the route lookup happens fine.     */    if (pRtEntry->rt_flags & RTF_HOST)        pNsin = NULL;    if (routedDebug > 2)        {        logMsg ("ripRouteAgeUpdate: setting new age = %d for\n",                 tickGet (), 0, 0, 0, 0, 0);        ripSockaddrPrint ((struct sockaddr *)pDsin);        ripSockaddrPrint ((struct sockaddr *)pNsin);        ripSockaddrPrint ((struct sockaddr *)pGsin);        }    /* Now set the route age */    if (routeAgeSet ((struct sockaddr *)pDsin, (struct sockaddr *)pNsin,                      M2_ipRouteProto_rip, tickGet ()) == ERROR)         {        if (routedDebug)             logMsg ("Couldn't set age for rtEntry = %x.\n", (int)pRtEntry, 0,                     0, 0, 0, 0);        }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内成人精品2018免费看| 性做久久久久久| 精品电影一区二区| 欧美日韩在线亚洲一区蜜芽| 在线观看国产精品网站| 在线视频国产一区| 在线观看免费成人| 欧美日韩一区成人| 69av一区二区三区| 日韩欧美一区二区免费| 欧美精品一区视频| 久久久精品2019中文字幕之3| 久久综合色鬼综合色| 久久久蜜桃精品| 国产精品女人毛片| 亚洲男人天堂一区| 国产成人av资源| 国产成人精品影视| 91在线你懂得| 欧美日韩精品一区二区| 日韩精品一区在线观看| 久久美女高清视频| 中文一区二区在线观看| 一区二区三区四区在线免费观看| 一区二区激情视频| 蜜桃视频在线观看一区二区| 精品制服美女久久| av中文字幕在线不卡| 欧美视频一区在线| 精品99一区二区| 国产精品丝袜久久久久久app| 亚洲激情自拍偷拍| 久久精品国产成人一区二区三区 | aaa亚洲精品| 一本久道中文字幕精品亚洲嫩 | 性做久久久久久久免费看| 日韩精品视频网| 国产精品一区二区你懂的| 91欧美一区二区| 欧美一级高清大全免费观看| 久久久久久久久久久久久久久99| 亚洲天堂免费看| 日韩黄色片在线观看| 国产白丝网站精品污在线入口| 欧美在线观看视频一区二区| 久久亚洲精精品中文字幕早川悠里| 国产精品天美传媒沈樵| 午夜激情一区二区三区| www.在线欧美| 2020日本不卡一区二区视频| 亚洲国产色一区| 成人国产亚洲欧美成人综合网| 欧美一区二区三区免费大片| 国产精品成人午夜| 国产精一品亚洲二区在线视频| 欧美三级三级三级| 亚洲人成亚洲人成在线观看图片| 久久99九九99精品| 欧美专区日韩专区| 1区2区3区精品视频| 国产原创一区二区三区| 欧美日韩国产小视频| 亚洲四区在线观看| 成人手机在线视频| 久久综合99re88久久爱| 日日夜夜免费精品| 欧美日韩精品免费| 一区二区三区蜜桃| 色综合天天综合在线视频| 久久噜噜亚洲综合| 极品瑜伽女神91| 欧美成人欧美edvon| 日本aⅴ免费视频一区二区三区| 91在线视频观看| 亚洲人成精品久久久久久| 大胆亚洲人体视频| 国产欧美一区二区在线观看| 国产美女av一区二区三区| 精品日韩成人av| 久久电影网站中文字幕| 精品毛片乱码1区2区3区 | 久久精品国产99国产| 91麻豆精品国产91久久久资源速度| 亚洲精品国久久99热| 日本精品视频一区二区| 一区二区三区在线视频免费观看| 色综合久久天天综合网| 亚洲欧美激情插| 91激情五月电影| 天天综合网 天天综合色| 欧美一级国产精品| 国产二区国产一区在线观看| 国产欧美日韩精品a在线观看| 成人免费看的视频| 日韩一区在线免费观看| 在线免费观看日本欧美| 丝袜美腿一区二区三区| 2023国产精品视频| 成人免费视频一区二区| 一区二区三区加勒比av| 日韩视频免费直播| 国产成人免费在线观看不卡| 亚洲日本在线天堂| 欧美一卡2卡三卡4卡5免费| 久久国产乱子精品免费女| 国产精品色婷婷| 欧美肥胖老妇做爰| 国产成人av电影| 一区二区三区日韩在线观看| 欧美一区三区四区| 豆国产96在线|亚洲| 亚洲黄色在线视频| 精品国产乱码久久久久久牛牛| 成人黄色小视频| 午夜精品久久久久久久99樱桃| 精品成人一区二区三区| 91免费观看视频在线| 日本最新不卡在线| 国产精品欧美久久久久一区二区| 色网站国产精品| 激情综合网最新| 亚洲综合久久久久| 国产午夜久久久久| 日韩网站在线看片你懂的| 9色porny自拍视频一区二区| 免费高清不卡av| 亚洲精品第1页| 国产欧美日本一区二区三区| 欧美一区二区视频免费观看| 91亚洲精品久久久蜜桃网站| 久久99精品国产麻豆婷婷洗澡| 亚洲综合色在线| ...xxx性欧美| 久久影院视频免费| 91麻豆精品国产综合久久久久久| 91蜜桃婷婷狠狠久久综合9色| 精品中文字幕一区二区| 日韩中文字幕麻豆| 一区二区三区在线视频免费观看| 国产欧美一区二区精品久导航 | 国产日产精品一区| 欧美一级国产精品| 欧美高清你懂得| 欧美亚洲一区二区在线| 一本久久精品一区二区| 99国产精品一区| 国产成人精品免费| 国产一区二区久久| 黑人巨大精品欧美一区| 美国三级日本三级久久99| 丝袜a∨在线一区二区三区不卡| 亚洲黄色小视频| 亚洲男同性视频| 亚洲老妇xxxxxx| 亚洲一区二区三区国产| 亚洲午夜精品17c| 亚洲国产中文字幕在线视频综合| 亚洲激情六月丁香| 亚洲综合图片区| 亚洲成av人影院在线观看网| 亚洲成人av免费| 日韩在线播放一区二区| 日韩成人免费在线| 捆绑调教美女网站视频一区| 精品在线观看免费| 国产不卡在线视频| 91色porny在线视频| 色嗨嗨av一区二区三区| 欧美伊人久久久久久久久影院| 欧美日韩一区中文字幕| 欧美日韩免费一区二区三区视频| 欧美日韩国产一区二区三区地区| 欧美精品自拍偷拍| 日韩精品资源二区在线| 久久久www成人免费无遮挡大片 | 99久久婷婷国产综合精品| 99久久久国产精品免费蜜臀| 欧美性感一区二区三区| 欧美一区二区三区性视频| 精品国产一区二区三区久久久蜜月 | 欧美人动与zoxxxx乱| 精品99999| 亚洲人成精品久久久久| 天堂在线一区二区| 丰满少妇在线播放bd日韩电影| 99vv1com这只有精品| 欧美日韩国产综合久久| 久久综合精品国产一区二区三区 | 日韩电影在线观看一区| 国产最新精品免费| 色婷婷亚洲综合| 精品免费视频一区二区| 亚洲精品免费在线观看| 久久超碰97中文字幕| 99久久免费精品高清特色大片| 欧美猛男超大videosgay| 久久网这里都是精品| 亚洲二区在线观看| 成人精品国产免费网站| 91精品国产一区二区三区蜜臀 |