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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? riplib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
                     * then mark it as primary                      */                    if (pRtEntry != NULL &&                         ripRouteSame (pRtEntry, pDstAddr, pNetmask, pGateway))                        {                        if (routedDebug)                            logMsg ("RTM_NEWIPROUTE: restoring primary route\n",                                     0, 0, 0, 0, 0, 0);                         pRtEntry->rt_state |= RTS_PRIMARY;                        }                    /* Now release the semaphore we took earlier */                    semGive (ripLockSem);                    }addIt:                /*                  * Now set the route hook flag to signify whether it                 * is an add operation or a change operation.                 * Note that we can get here from change processing too.                 * Also we treat RTM_NEWIPROUTE as a change since it is                 * not a new route that is being added to the system.                 */                hookFlag = (cmd == RTM_ADD || cmd == RTM_ADDEXTRA) ?                    0 : RIP_ROUTE_CHANGE_RECD;                /*                 * Call the user hook routine if installed. If the routine                 * returns a metric less than infinity, add the route to                 * our table, else just ignore it. The user is responsible                 * for setting the metric of the route. In case he forgets                 * to assign a valid metric, assign a default metric of 1                 */                if (ripState.pRouteHook == NULL)                    break;                 if ((metric = (ripState.pRouteHook)                     (&msg.rtMsg, routeProto, primaryRoute, hookFlag)) >=                     HOPCNT_INFINITY)                    {                    /* Take the semaphore to lock the RIP timer task out */                    semTake (ripLockSem, WAIT_FOREVER);                     pRtEntry = rtlookup (pDstAddr);                    /*                     * If we have the exact same route in our table,                     * then delete it as the user doesn't want it.                     */                    if (pRtEntry != NULL &&                         ripRouteSame (pRtEntry, pDstAddr, pNetmask, pGateway))                        {                        if (routedDebug)                            logMsg ("ripRouteMsgProcess:cmd = %s: deleting primary"                                    "route\n", (int)(rtmMessages [cmd]),                                    0, 0, 0, 0, 0);                         rtdelete (pRtEntry);                        }                    /* Now release the semaphore we took earlier */                    semGive (ripLockSem);                    break;                    }                if (metric < 0)                    metric = 1;                /* Take the semaphore to lock the RIP timer task out */                semTake (ripLockSem, WAIT_FOREVER);                 /*                  * Check if we already have an entry for the specified                  * destination. If we do and it is a RIP route                  * (RTS_OTHER not set) or if the route belongs to another                 * protocol, but has a higher or same metric than this new                 * route, delete the old route. We always give precedence                 * to OTHER routes over RIP routes. In any case, we                  * do not allow an interface route to be replaced. Also                 * if we have the same route and its metric is being changed                 * we need to record that change. For simplicity, we just                 * delete the old route and add the new one.                 */                pRtEntry = rtlookup (pDstAddr);                if ((pRtEntry == NULL) ||                    (!(pRtEntry->rt_state & RTS_INTERFACE) &&                      (((pRtEntry->rt_state & RTS_OTHER) == 0) ||                       (pRtEntry->rt_metric >= metric) ||                       ripRouteSame (pRtEntry, pDstAddr, pNetmask, pGateway))))                     {                    if (pRtEntry)                        rtdelete (pRtEntry);                    flags = RTS_OTHER;                    /* Record whether this route is the primary route or not */                    if (primaryRoute)                        flags |= RTS_PRIMARY;                    rtadd (pDstAddr, pGateway, metric, flags,                           pNetmask, routeProto, 0, 0, NULL);                                        if (routedDebug)                        logMsg ("%s: Added new route\n", (int)rtmMessages [cmd],                                 0, 0, 0, 0, 0);                    }                /* Now release the semaphore we took earlier */                semGive (ripLockSem);                break;             case RTM_CHANGE: 	/* Primary route changing */            case RTM_NEWCHANGE: 	/* Duplicate route changing */                if (msg.rtMsg.rtm.rtm_errno != 0)                     {                    if (routedDebug)                        logMsg ("ignore route message %s for index %d"                                 " error = %d\n", (int)rtmMessages [cmd],                                 index, msg.rtMsg.rtm.rtm_errno, 0, 0, 0);                    break;                    }                 /*                  * Get the address of the old gateway. This information                 * is only available for the RTM_NEWCHANGE and not for                 * RTM_CHANGE (for compatibility reasons)                 */                if (cmd == RTM_NEWCHANGE)                     {                    pOldGateway = INFO_AUTHOR (&rtInfo);                    /*                      * If Gateway didn't change, set old gateway to                     * the previous gateway address, so that ripRouteSame                     * can work properly.                     */                    if (pOldGateway == NULL)                        pOldGateway = pGateway;                    if (pOldGateway == NULL)                        {                        /*                         * This is a route change for a duplicate route                         * for which the gateway didn't change.                         * Also, we don't have enough information                         * to determine if we have this particular route                         * in our cache. We need a gateway                         * address to identify a duplicate route.                         * Since we can't do that, simply exit.                         */                        if (routedDebug)                            logMsg ("RTM_NEWCHANGE: gateway not specified. "                                    "Doing nothing.\n", 0, 0, 0, 0, 0, 0);                        break;                        }                    }                else                    pOldGateway = NULL;                if (routedDebug)                     {                    logMsg ("RIP: %s received\n",                             (int)rtmMessages [cmd],0,0,0,0,0);                    ripSockaddrPrint (pDstAddr);                    ripSockaddrPrint (pNetmask);                    ripSockaddrPrint (pGateway);                    logMsg ("RIP: %s received: old Gateway addr\n",                             (int)rtmMessages [cmd],0,0,0,0,0);                    ripSockaddrPrint (pOldGateway);                    logMsg ("RIP: new metric %d\n",                             msg.rtMsg.rtm.rtm_rmx.rmx_hopcount,0,0,0,0,0);                    }                /*                  * If the route was installed by us or was an interface                 * route, ignore it. Nobody should be changing this route.                 */                routeProto = RT_PROTO_GET (pDstAddr);                if (routeProto == M2_ipRouteProto_rip ||                    routeProto == M2_ipRouteProto_local)                    break;                /*                 * The destination sockaddr structure has the                  * protocol value set. Make it zero since                  * we compare the entire sockaddr structure at other                 * places (input.c for example) that expect the                 * standard fields to be zero.                 * We set the gateway sockaddr fields to be zero                 * too (just being paranoid, in case they aren't already zero)                 * as rtlookup() expects it to be zero. Do the same                 * for the TOS value too.                 * We store the proto value anyway in the rtentry                 * structure.                 */                if (pGateway)                    {                    RT_PROTO_SET (pGateway, 0);                    TOS_SET (pGateway, 0);                    }                RT_PROTO_SET (pDstAddr, 0);                TOS_SET (pDstAddr, 0);                /* Take the semaphore to lock the RIP timer task out */                semTake (ripLockSem, WAIT_FOREVER);                 /*                  * Check if we have this route in our table.                  * If we have it,                  *   make sure it is the exact                 *   same route:                 *     same dst, gateway and netmask values                 *     same routing protocol                 *                 *   If we know about this route, record the gateway change,                 *   if any. If the hop count field was modified, then                 *   that indicates that the RIP metric was stored in that                 *   field; so we copy the metric from that field,                 *   else we call the user hook for a new metric.                 *   If they return a metric >= HOPCNT_INFINITY we delete the                 *   route. else we update the metric.                 *   Note that pOldGateway would be NULL if the primary route                 *   is being changed. We account for that in the                  *   ripRouteSame routine by checking if the route we have                 *   is the primary route                 *                 * If we don't have the route in our table, call the user                 * hook to decide if they want us to propagate this route.                 */                pRtEntry = rtlookup (pDstAddr);                if (pRtEntry &&                     ((pRtEntry->rt_state & RTS_OTHER) != 0) &&                     (pRtEntry->rt_proto == routeProto) &&                    ripRouteSame (pRtEntry, pDstAddr, pNetmask, pOldGateway))                    {                    /* If the gateway has changed, record the change */                    if (pGateway && !equal (&pRtEntry->rt_router, pGateway))                        {                        /* Now record the new gateway and its interface */                        pRtEntry->rt_router = *pGateway;                         pRtEntry->rt_ifp =                             ripIfWithDstAddr (&pRtEntry->rt_router, NULL);                        if (pRtEntry->rt_ifp == 0)                             pRtEntry->rt_ifp =                                 ripIfWithNet (&pRtEntry->rt_router);                        pRtEntry->rt_state |= RTS_CHANGED;                        if (routedDebug)                            logMsg ("%s: Changed gateway\n",                                     (int)rtmMessages [cmd], 0, 0, 0, 0, 0);                        }                    /* If the metric changed, record it. */                    if ((msg.rtMsg.rtm.rtm_inits & RTV_HOPCOUNT) != 0)                         {                        pRtEntry->rt_metric =                             msg.rtMsg.rtm.rtm_rmx.rmx_hopcount;                        pRtEntry->rt_state |= RTS_CHANGED;                        if (pRtEntry->rt_metric >= HOPCNT_INFINITY)                            {                            /* The user wants the route deleted. Do so */                            rtdelete (pRtEntry);                            }                        }                    else if (ripState.pRouteHook != NULL)                        {                        /* Allow the use to specify a new metric */                        metric = (ripState.pRouteHook)                             (&msg.rtMsg, routeProto, (cmd == RTM_CHANGE),                              RIP_ROUTE_CHANGE_RECD);                        /* If the user wants the route to be deleted, do so */                        if (metric >= HOPCNT_INFINITY)                            {                            pRtEntry->rt_state |= RTS_CHANGED;                            rtdelete (pRtEntry);                            }                        else if (metric > 0)                            {                            /* Record the metric change */                            pRtEntry->rt_metric = metric;                            pRtEntry->rt_state |= RTS_CHANGED;                            }                        }                    }                else                    {                    /*                      * This might be a route that was duplicate, but                     * because it's weight changed for the better, it became                     * primary. Or it just might be a route that we ere told to                     * ignore earlier on, but since things have changed,                     * Allow the user to decide if he wants this                     * route to be propagated.                      */                    if (routedDebug)                        logMsg ("%s: Trying to add new route\n",                                 (int)rtmMessages [cmd], 0, 0, 0, 0, 0);                    semGive (ripLockSem);                    primaryRoute = (cmd == RTM_CHANGE) ? TRUE : FALSE;                    goto addIt;                    }                semGive (ripLockSem);                break;            case RTM_OLDIPROUTE:                if (routedDebug)                     {                    logMsg ("RIP: %s received for index %d\n",                             (int)rtmMessages [cmd], index, 0, 0, 0, 0);                    ripSockaddrPrint (pDstAddr);                    ripSockaddrPrint (pNetmask);                    ripSockaddrPrint (pGateway);                    }                /*                  * If the route was installed by us or is an interface                 * route, ignore it. We don't care about these routes.                 */                routeProto = RT_PROTO_GET (pDstAddr);                if (routeProto == M2_ipRouteProto_rip ||                    routeProto == M2_ipRouteProto_local)                    break;                /*                 * The destination sockaddr structure has

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人激情视频网站| 91精品国产综合久久福利| 国产一区免费电影| 日韩**一区毛片| 婷婷激情综合网| 日韩国产欧美在线视频| 亚洲成国产人片在线观看| 亚洲一区在线观看网站| 亚洲成人一区在线| 丝袜美腿成人在线| 蜜臀av在线播放一区二区三区| 免费看欧美女人艹b| 久久国产精品72免费观看| 国产综合色产在线精品| 国产一区二区福利视频| 成人国产精品免费观看视频| www.成人在线| 91成人免费网站| 欧美精品自拍偷拍| 日韩欧美电影一区| 中文字幕久久午夜不卡| 亚洲免费伊人电影| 午夜精品久久久久久不卡8050| 日本成人中文字幕| 国产99精品国产| aa级大片欧美| 7777精品伊人久久久大香线蕉完整版| 欧美大片在线观看一区二区| 久久久久久99久久久精品网站| 国产精品久久影院| 亚洲丰满少妇videoshd| 狠狠色丁香婷婷综合久久片| 成av人片一区二区| 欧美日韩一区三区四区| 精品91自产拍在线观看一区| 国产精品理论片| 亚洲二区在线视频| 国产在线精品国自产拍免费| 91在线视频播放地址| 欧美一区二区三区免费在线看| 久久九九全国免费| 亚洲一区二区三区精品在线| 激情文学综合丁香| 色婷婷精品久久二区二区蜜臂av| 欧美一个色资源| 国产精品三级av在线播放| 亚州成人在线电影| 国产a级毛片一区| 日本久久一区二区| 久久网站最新地址| 亚洲欧洲国产日本综合| 天天综合色天天| 国产91露脸合集magnet| 欧美私人免费视频| 国产视频一区在线播放| 亚洲成人在线免费| 成人精品电影在线观看| 欧美一区二区久久| 综合激情成人伊人| 精品一区二区精品| 欧美在线小视频| 国产精品美女久久久久久| 日本欧美一区二区| 91在线观看高清| www成人在线观看| 婷婷综合另类小说色区| 99久久免费精品| 日韩精品一区二区三区三区免费| 一区二区在线看| 国产成人精品免费视频网站| 777精品伊人久久久久大香线蕉| 亚洲视频综合在线| 处破女av一区二区| 中文在线一区二区| 亚洲成a人在线观看| av成人老司机| 国产三级三级三级精品8ⅰ区| 蜜臀a∨国产成人精品| 精品视频免费在线| 国产乱妇无码大片在线观看| 欧美日韩国产在线观看| 综合自拍亚洲综合图不卡区| 丰满少妇在线播放bd日韩电影| 这里是久久伊人| 亚洲成av人片一区二区| 色噜噜偷拍精品综合在线| 国产精品毛片a∨一区二区三区| 精品亚洲国产成人av制服丝袜| 欧美日韩国产综合一区二区 | 国产精品欧美精品| 国产一区二区不卡| 精品国产乱码久久久久久夜甘婷婷 | 91猫先生在线| 国产精品国产三级国产a| 豆国产96在线|亚洲| 久久久国产一区二区三区四区小说| 美女视频黄频大全不卡视频在线播放| 在线观看一区二区视频| 亚洲蜜臀av乱码久久精品蜜桃| 91尤物视频在线观看| 亚洲老司机在线| 欧洲另类一二三四区| 亚洲成人免费在线观看| 欧美日韩精品久久久| 亚洲成人动漫在线免费观看| 欧美日韩精品欧美日韩精品| 亚洲大片在线观看| 91.com在线观看| 麻豆精品新av中文字幕| 亚洲精品一线二线三线无人区| 久久99蜜桃精品| 久久精品一区二区三区不卡牛牛| 国产精品一区免费在线观看| 久久久一区二区| 丁香激情综合五月| 亚洲视频在线观看三级| 欧美在线三级电影| 视频一区免费在线观看| 日韩视频在线一区二区| 精品无人码麻豆乱码1区2区 | 国产精品不卡一区二区三区| 99精品偷自拍| 亚洲一二三级电影| 欧美一卡二卡在线观看| 国产精品一区2区| 专区另类欧美日韩| 欧美在线色视频| 精品一区二区三区在线观看 | 国产综合久久久久影院| 国产精品麻豆一区二区| 欧美在线短视频| 精品一区二区久久久| 国产精品蜜臀av| 欧美日韩高清一区| 狠狠色狠狠色综合系列| 亚洲欧洲日韩一区二区三区| 欧美日韩精品免费| 国产电影一区二区三区| 亚洲精品高清在线观看| 日韩无一区二区| 99久久精品国产一区| 香蕉加勒比综合久久| 久久久另类综合| 欧美午夜电影在线播放| 韩国在线一区二区| 一区二区三区四区高清精品免费观看 | 欧美日韩免费高清一区色橹橹| 久久国产生活片100| 亚洲欧美日韩电影| 精品国产乱码久久| 中文字幕在线不卡国产视频| 欧美三级中文字幕| 国产九色sp调教91| 亚洲一区二区在线免费看| 精品免费一区二区三区| 色婷婷久久综合| 国产精品亚洲视频| 亚洲va欧美va人人爽午夜| 国产欧美1区2区3区| 欧美麻豆精品久久久久久| 懂色av中文一区二区三区| 日韩精品国产欧美| 亚洲人精品午夜| 亚洲精品在线观| 欧美疯狂做受xxxx富婆| 99国产精品一区| 狠狠色综合日日| 日日夜夜精品视频免费| 亚洲男同1069视频| 久久久久久一二三区| 69精品人人人人| 色婷婷久久久久swag精品| 国产东北露脸精品视频| 久久er精品视频| 秋霞成人午夜伦在线观看| 亚洲精品美国一| 国产精品日日摸夜夜摸av| ww久久中文字幕| 91精品一区二区三区久久久久久| 一本大道久久a久久精二百| 国产91精品一区二区| 久久精品72免费观看| 亚洲风情在线资源站| 一区二区三区在线高清| 国产精品国产三级国产aⅴ原创| 欧美成人三级在线| 91精品国产综合久久久久| 在线观看91视频| 91豆麻精品91久久久久久| 91在线国产福利| www.av精品| 99久久精品免费观看| gogogo免费视频观看亚洲一| 国产成人综合亚洲91猫咪| 国产精品伊人色| 国产电影一区在线| www.欧美亚洲| 国产伦精品一区二区三区视频青涩| 日韩国产欧美在线观看| 亚洲成人激情av|