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

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

?? input.c

?? 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一区二区三区免费野_久草精品视频
欧美绝品在线观看成人午夜影视| 久久精品一区二区三区不卡| 欧美一区二区黄| 国产欧美va欧美不卡在线| 亚洲另类一区二区| 国产成人午夜高潮毛片| 欧美高清性hdvideosex| 亚洲欧美一区二区三区极速播放| 久久99这里只有精品| 欧美色图天堂网| 中文字幕日本不卡| 国产激情91久久精品导航 | 成人av免费在线观看| 91精品福利在线一区二区三区| 亚洲免费观看高清完整| 成人av一区二区三区| 久久久久久影视| 国产最新精品免费| 日韩欧美一卡二卡| 免费一级片91| 91精品国产麻豆| 五月天网站亚洲| 欧美性色欧美a在线播放| 一区二区三区精品| 99精品国产一区二区三区不卡| 欧美国产一区视频在线观看| 国产一区二区免费视频| 久久只精品国产| 国模少妇一区二区三区| 精品国产乱码久久久久久1区2区| 久久国产精品露脸对白| 欧美va日韩va| 国产精品一区在线观看乱码| 久久久天堂av| 成人av午夜电影| 中文字幕亚洲一区二区va在线| 99久久国产免费看| 国产精品家庭影院| 在线免费观看成人短视频| 亚洲美女一区二区三区| 欧美亚洲动漫另类| 丝袜亚洲另类丝袜在线| 91精品国产手机| 国产精品原创巨作av| 国产三级精品三级| 91亚洲精品久久久蜜桃| 亚洲一区免费观看| 日韩一区国产二区欧美三区| 精品一区免费av| 国产精品每日更新在线播放网址| 99久久久免费精品国产一区二区| 亚洲欧美国产77777| 欧美日韩日本视频| 国内精品久久久久影院一蜜桃| 亚洲国产高清不卡| 在线免费av一区| 蜜桃av一区二区| 成人欧美一区二区三区小说| 欧美性生活影院| 国内不卡的二区三区中文字幕| 中文一区二区在线观看| 精品视频1区2区| 国产精品一卡二卡在线观看| 亚洲天堂av一区| 日韩女优毛片在线| 色偷偷久久人人79超碰人人澡 | 91精品国产丝袜白色高跟鞋| 国产一区二区三区国产| 亚洲乱码一区二区三区在线观看| 欧美精品乱码久久久久久按摩 | 欧美激情中文不卡| 欧美在线观看视频一区二区三区| 久久99久久久欧美国产| 伊人一区二区三区| 国产亚洲成年网址在线观看| 欧美日韩黄色影视| av电影天堂一区二区在线| 日韩高清在线观看| 国产精品久久久爽爽爽麻豆色哟哟| 欧美日本国产一区| 不卡一区二区在线| 激情综合五月天| 亚洲综合偷拍欧美一区色| 精品电影一区二区| 欧美老女人在线| 99精品视频在线观看免费| 国产做a爰片久久毛片| 性久久久久久久| 亚洲私人影院在线观看| 国产日韩综合av| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日本一区二区三区高清不卡 | 日韩女优毛片在线| 欧美影院一区二区三区| av一二三不卡影片| 国产精品88888| 美国欧美日韩国产在线播放| 亚洲成人www| 亚洲精品国产一区二区三区四区在线| 日韩视频中午一区| 欧美美女黄视频| 91黄视频在线观看| 91丨porny丨蝌蚪视频| 福利电影一区二区| 国产麻豆精品在线观看| 久久99久久精品| 日韩电影免费一区| 日韩电影在线一区二区三区| 亚洲香肠在线观看| 一区二区三区四区不卡在线| 自拍偷拍亚洲激情| 国产精品免费久久| 中文字幕av免费专区久久| 亚洲国产成人一区二区三区| 欧美国产乱子伦| 国产精品成人一区二区艾草| 国产精品系列在线| 国产精品久线在线观看| 亚洲欧洲日韩综合一区二区| 国产精品剧情在线亚洲| 亚洲少妇屁股交4| 亚洲最新视频在线观看| 亚洲高清免费在线| 强制捆绑调教一区二区| 蜜桃久久av一区| 国产成人精品免费一区二区| 成人三级伦理片| 色噜噜狠狠成人中文综合| 色老汉一区二区三区| 欧美高清dvd| 久久品道一品道久久精品| 中文字幕欧美激情一区| 亚洲另类一区二区| 免费成人在线播放| 国产成人自拍在线| 91免费视频网| 日韩色在线观看| 国产精品免费aⅴ片在线观看| 一区二区三区毛片| 经典三级在线一区| 91丨九色丨蝌蚪丨老版| 欧美色视频在线| 国产日韩综合av| 亚洲妇熟xx妇色黄| 国产伦精品一区二区三区在线观看| 岛国精品一区二区| 欧美三级中文字| 久久先锋影音av鲁色资源网| 国产精品成人午夜| 日本美女一区二区三区视频| 国产成人综合亚洲91猫咪| 欧美性猛片xxxx免费看久爱| 久久亚洲一区二区三区明星换脸| 亚洲人成亚洲人成在线观看图片| 日韩va亚洲va欧美va久久| 国产成人8x视频一区二区| 欧美性猛交一区二区三区精品 | 盗摄精品av一区二区三区| 色丁香久综合在线久综合在线观看| 在线播放91灌醉迷j高跟美女| 国产亚洲女人久久久久毛片| 亚洲国产精品一区二区www在线| 精品一区二区三区的国产在线播放| av福利精品导航| 久久网站最新地址| 亚洲国产精品久久久男人的天堂| 国产一区二区三区在线观看免费视频 | 欧美日韩国产中文| 国产精品天美传媒| 国产综合色视频| 欧美剧情片在线观看| 亚洲精品国产第一综合99久久| 国产一区二区三区四区在线观看 | 91在线观看成人| 久久蜜桃一区二区| 日本中文字幕一区| 91视频xxxx| 日本一区二区三区视频视频| 男男视频亚洲欧美| 欧美高清视频在线高清观看mv色露露十八| 成人欧美一区二区三区1314| 国产激情91久久精品导航| 精品va天堂亚洲国产| 琪琪久久久久日韩精品| 91黄色免费观看| 一个色综合av| 色哟哟国产精品免费观看| 国产精品女同一区二区三区| 国产精品资源在线| 国产亚洲精品7777| 国产99久久久国产精品| 久久精品一区二区| 国产91丝袜在线播放九色| 久久久99久久| 国产成人aaa| 亚洲天堂网中文字| 91热门视频在线观看| 亚洲欧美日韩国产综合在线| 91在线视频观看| 亚洲男人电影天堂|