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

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

?? startup.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
            }        else if (ripIfWithAddrAndIndex (&ifs.int_addr, ifam->ifam_index))            continue;        if (ifs.int_flags & IFF_LOOPBACK)            {            ifs.int_flags |= IFF_PASSIVE;            foundloopback = 1;            loopaddr = ifs.int_addr;            for (ifp = ripIfNet; ifp; ifp = ifp->int_next)                 if (ifp->int_flags & IFF_POINTOPOINT)                     add_ptopt_localrt(ifp, 0);            }        /* Assign the broadcast address for the interface, if any. */        if (ifs.int_flags & IFF_BROADCAST)            {            if (BRDADDR == 0)                {                if (routedDebug)                    logMsg ("No broadcast address for %s.\n",                            (int)sdl->sdl_data, 0, 0, 0, 0, 0);                continue;                }            ifs.int_dstaddr = *BRDADDR;            }         /*          * Use a minimum metric of one; treat the interface metric           * (default 0) as an increment to the hop count of one.          */        ifs.int_metric = ifam->ifam_metric + 1;        /* Assign the network and subnet values. */        if (NETMASK == 0)             {            if (routedDebug)                logMsg ("No netmask for %s.\n", (int)sdl->sdl_data,                        0, 0, 0, 0, 0);            continue;            }        /*          * For AF_INET addresses, the int_subnetmask field copied here         * defaults to the class-based value for the associated int_addr          * field, but will contain some other value if explicity specified.         */        sin = (struct sockaddr_in *)NETMASK;        ifs.int_subnetmask = ntohl (sin->sin_addr.s_addr);        /*         * The network number stored here may differ from the original         * value accessed through the ifnet linked list. The original value         * is equal to the class-based setting by default, but is reset         * to the same value as the int_subnetmask field if a less         * specific (i.e. supernetted) value is assigned. This value is         * always set equal to the class-based value, even if a supernet         * is specified.         */        sin = (struct sockaddr_in *)&ifs.int_addr;        i = ntohl(sin->sin_addr.s_addr);        if (IN_CLASSA(i))            ifs.int_netmask = IN_CLASSA_NET;        else if (IN_CLASSB(i))            ifs.int_netmask = IN_CLASSB_NET;        else            ifs.int_netmask = IN_CLASSC_NET;        ifs.int_net = i & ifs.int_netmask;        ifs.int_subnet = i & ifs.int_subnetmask;        /*          * The IFF_SUBNET flag indicates that the interface does not use the         * class-based mask stored in the int_netmask field: it may be more          * or less specific than that value.         */        if (ifs.int_subnetmask != ifs.int_netmask)            ifs.int_flags |= IFF_SUBNET;        ifp = (struct interface *)malloc (sdl->sdl_nlen + 1 + sizeof(ifs));        if (ifp == 0)            {            if (routedDebug)                logMsg ("routedIfInit: out of memory.\n", 0, 0, 0, 0, 0, 0);            ripState.lookforinterfaces = TRUE;            break;            }        *ifp = ifs;        /*         * Count the # of directly connected networks         * and point to point links which aren't looped         * back to ourself.  This is used below to         * decide if we should be a routing ``supplier''.         */        if ( (ifs.int_flags & IFF_LOOPBACK) == 0 &&            ( (ifs.int_flags & IFF_POINTOPOINT) == 0 ||             ripIfWithAddr (&ifs.int_dstaddr) == 0))            ripState.externalinterfaces++;        /*         * If we have a point-to-point link, we want to act         * as a supplier even if it's our only interface,         * as that's the only way our peer on the other end         * can tell that the link is up.         */        if ( (ifs.int_flags & IFF_POINTOPOINT) && ripState.supplier < 0)            ripState.supplier = 1;        /*          * Copy the interface name specified in the link-level address.          * into the space provided.         */        ifp->int_name = (char *)(ifp + 1);        strcpy (ifp->int_name, sdl->sdl_data);        /* Set the index of the interface */        ifp->int_index = ifam->ifam_index;        /* Add the given entry to the ripIfNet linked list. */        *ifnext = ifp;        ifnext = &ifp->int_next;        /* Create a route to the network reachable with the new address. */        addrouteforif (ifp);        /* Set the MIB variables for the configuration on this interface. */        bzero ( (char *)&ifp->ifStat, sizeof(ifp->ifStat));        bzero ( (char *)&ifp->ifConf, sizeof(ifp->ifConf));        sin = (struct sockaddr_in *)&ifs.int_addr;        i = sin->sin_addr.s_addr;        ifp->ifStat.rip2IfStatAddress = i;        ifp->ifConf.rip2IfConfAddress = i;        ifp->ifConf.rip2IfConfAuthType = ripState.ripConf.rip2IfConfAuthType;        bcopy (ripState.ripConf.rip2IfConfAuthKey,               ifp->ifConf.rip2IfConfAuthKey, 16);        ifp->ifConf.rip2IfConfSend = ripState.ripConf.rip2IfConfSend;        ifp->ifConf.rip2IfConfReceive = ripState.ripConf.rip2IfConfReceive;        ifp->ifConf.rip2IfConfDefaultMetric =                                       ripState.ripConf.rip2IfConfDefaultMetric;        ifp->ifConf.rip2IfConfStatus = ripState.ripConf.rip2IfConfStatus;        ifp->authHook = NULL;        ifp->leakHook = NULL;        ifp->sendHook = NULL;        /*         * If multicasting is enabled and the interface supports it,          * attempt to join the RIP multicast group.         */        if (ripState.multicast && (ifs.int_flags & IFF_MULTICAST))            {            ipMreq.imr_interface.s_addr = i;            if (setsockopt (ripState.s, IPPROTO_IP, IP_ADD_MEMBERSHIP,                            (char *)&ipMreq, sizeof (ipMreq)) < 0)                {                if (routedDebug)                    logMsg ("setsockopt IP_ADD_MEMBERSHIP error:\n",                            0, 0, 0, 0, 0, 0);                }            }        }    if (ripState.externalinterfaces > 1 && ripState.supplier < 0)        ripState.supplier = 1;    free (buf);    return (OK);    }/* * Add route for interface if not currently installed. * Create route to other end if a point-to-point link, * otherwise a route to this (sub)network. * INTERNET SPECIFIC. */void addrouteforif(ifp)	register struct interface *ifp;{	struct sockaddr_in net;	struct sockaddr *dst;	int state;	register struct rt_entry *rt;        int refcnt_save = 0;        int subnets_cnt_save = 0;        /* Clear the fact there there are no routes for this interface */        ifp->int_flags &= ~IFF_ROUTES_DELETED;        /*         * The algorithm explained....         * We are going to add  route(s) for the interface.         * The following cases exist:         *	1) The interface is not PPP and  not-subnetted          *	   e.g, 164.10.1.1/16         *         In this case we just want to add the following route         *            164.10.0.0 255.255.0.0 --> 164.10.1.1         *         If there already exists another route for that same network,         *            if that route is not an internally generated route         *               increment rt_refcnt          *            else         *               Delete the existing route and save its ref counts         *               Add route through this interface.         *               Set the reference counts from the previous route.         *               increment rt_refcnt and rt_subnets_cnt         *         else         *            Add the route through the inetrface         *            Set rt_refcnt and rt_subnets_cnt to zero         *         *	2) The interface is not PPP and is subnetted          *	   e.g, 164.10.2.1/24         *         In this case we want to add the following routes         *            164.10.2.0 255.255.255.0 --> 164.10.2.1         *            164.10.0.0 255.255.0.0   --> 164.10.2.1 (Internal route)         *         The internal route is used for border gateway filtering.         *         *         If there already exists another route for that same          *          (sub)network,         *            if that route is not an internally generated route         *               increment rt_refcnt          *            else         *               Delete the existing route and save its ref counts         *               Add route through this interface.         *               Set the reference counts from the previous route.         *               increment rt_refcnt and rt_subnets_cnt         *         else         *            Add the route through the inetrface         *            Set rt_refcnt and rt_subnets_cnt to zero         *         If there exists a route for the class based network         *            increment the rt_refcnt and rt_subnets_cnt for the route         *         else         *            Add the internal class based route.          *            Set both the ref counts to zero.         *         *	3) The interface is PPP         *	   e.g, 164.10.1.1/32 --> 124.10.2.2         *         In this case we just want to add the following routes         *            124.10.2.2   255.255.255.255  --> 164.10.1.1         *            164.10.1.1   255.255.255.255  --> 127.0.0.1         *         If there already exists another route for the destination         *            increment rt_refcnt          *         else         *            Add the route through the inetrface         *            Set rt_refcnt and rt_subnets_cnt to zero         *         Add a route for the local address of the link thru the          *          loopback interface.         */        /* Check if there already exists a route for the network (remote end)*/	if (ifp->int_flags & IFF_POINTOPOINT)		dst = &ifp->int_dstaddr;	else {		memset(&net, 0, sizeof (net));                net.sin_len = sizeof (net);		net.sin_family = AF_INET;		net.sin_addr.s_addr = htonl (ifp->int_subnet);		dst = (struct sockaddr *)&net;	}        if ((rt = rtlookup(dst)) == NULL)             rt = rtfind(dst);	if (rt)            {            /*              * If we have an indirect route to the destination,              * delete it as we now have a direct route             */            if ((rt->rt_state & RTS_INTERFACE) == 0)                rtdelete (rt);            else                {                if (ifp->int_flags & IFF_POINTOPOINT)                    {                    rt->rt_refcnt++;                    if (ifp->int_flags & IFF_POINTOPOINT && foundloopback)                         add_ptopt_localrt(ifp, 0);                    return;                    }                if ((rt->rt_state & (RTS_INTERFACE | RTS_INTERNAL))                        == RTS_INTERFACE)                    {                    /* The route is not an internal route */                    if (rt->rt_ifp->int_subnetmask == ifp->int_subnetmask)                        {                        /*                          * This interface is on the same (sub)network as the                         * retrieved route. Increment the reference count.                         */                        rt->rt_refcnt++;                        /*                         * If the interface uses classless addressing,                          * an additional entry is stored in the routing table                         * which can be correctly interpreted by RIP-1 and                          * RIP-2 routers that are not directly connected to                         * the interface's network. The appropriate entry is                         * selected by the border gateway filtering performed                         * when updates are generated.                         */                        if (ifp->int_flags & IFF_SUBNET)                             {                            net.sin_addr.s_addr = htonl (ifp->int_net);                            if ((rt = rtlookup(dst)) == NULL)                                 rt = rtfind(dst);                            if (rt == 0)                                {                                if (routedDebug)                                     logMsg ("Error! Didn't find classful route"                                            " for %x, interface %s.\n",                                             (int)ifp->int_net,                                             (int)ifp->int_name, 0, 0, 0, 0);                                }                            else                                 {                                rt->rt_refcnt++;                                rt->rt_subnets_cnt++;                                if ((rt->rt_state & (RTS_INTERNAL|RTS_SUBNET))                                    == (RTS_INTERNAL|RTS_SUBNET) &&                                     (ifp->int_metric < rt->rt_metric))                                    rtchange (rt, &ifp->int_addr,                                               ifp->int_metric, NULL, 0, 0,                                               ifp);                                }                            }                        return;                        }                    }                else                    {                    /*                     * If this was a classful route installed by an earlier                     * subnetted interface, save the reference count values                     * as we'll need to restore them on the route that will                     * be installed later                     */                    refcnt_save = rt->rt_refcnt + 1;                     subnets_cnt_save = rt->rt_subnets_cnt + 1;                    rtdelete (rt);                    }                }            }	/*	 * If the interface uses classless addressing, an additional entry         * is stored in the routing table which can be correctly interpreted         * by RIP-1 and RIP-2 routers that are not directly connected to         * the interface's network. The appropriate entry is selected by the         * border gateway filtering performed when updates are generated.	 */	if ((ifp->int_flags & (IFF_SUBNET|IFF_POINTOPOINT)) == IFF_SUBNET) {		struct in_addr subnet;		subnet = net.sin_addr;		net.sin_addr.s_addr = htonl (ifp->int_net);		if ((rt = rtlookup(dst)) == NULL) 		    rt = rtfind(dst);		if (rt == 0)                     rt = rtadd(dst, &ifp->int_addr, ifp->int_metric,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲日产国码二区| 肉色丝袜一区二区| 精品国产一区二区三区忘忧草 | 精品一区二区久久| 国产不卡视频在线播放| 91女人视频在线观看| 欧美一区二区三区婷婷月色| 欧美v日韩v国产v| 亚洲欧美另类小说视频| 午夜不卡av在线| 国产不卡免费视频| 91精品国产综合久久久蜜臀图片 | 天堂久久久久va久久久久| 国产一区二区三区四区五区入口| 成人精品国产一区二区4080| 欧美日韩一区二区三区在线看| 精品国产一区二区三区久久久蜜月 | 国产精品麻豆久久久| 亚洲大片在线观看| 国产白丝精品91爽爽久久| 欧美高清dvd| 亚洲人午夜精品天堂一二香蕉| 日韩精品视频网| 成人精品视频一区| 精品国产1区二区| 亚洲国产日产av| 成人午夜精品在线| 91久久精品一区二区二区| 日韩午夜在线观看视频| 亚洲精品成人悠悠色影视| 国产一区二区不卡老阿姨| 欧美男男青年gay1069videost| 国产精品国产三级国产普通话三级 | 99国产精品久久久久| 精品国内片67194| 亚洲18色成人| 色猫猫国产区一区二在线视频| 国产日产欧美一区二区三区 | 夜夜嗨av一区二区三区| 欧美一卡2卡三卡4卡5免费| 欧美日韩激情一区| 欧美亚洲国产一区在线观看网站 | 亚洲国产aⅴ成人精品无吗| 国产1区2区3区精品美女| 精品国产免费久久| 狠狠色狠狠色合久久伊人| 91免费国产在线观看| 最好看的中文字幕久久| 99视频在线观看一区三区| 国产欧美日韩一区二区三区在线观看| 天天色图综合网| 欧美午夜一区二区三区| 亚洲综合图片区| 欧美主播一区二区三区美女| 亚洲色图一区二区| 国产成人精品亚洲日本在线桃色| 精品国产区一区| 国产成人一级电影| 亚洲欧美在线aaa| 91麻豆文化传媒在线观看| 亚洲精品久久久久久国产精华液| 色综合色狠狠综合色| 日韩理论片一区二区| 成人av动漫网站| 亚洲精品一二三四区| 欧美调教femdomvk| 首页国产欧美日韩丝袜| 欧美日韩国产小视频| 日本欧美一区二区三区| 欧美一区二区三区在线电影| 裸体在线国模精品偷拍| 久久人人超碰精品| 99视频超级精品| 亚洲一区二区三区中文字幕在线| aaa亚洲精品| 亚洲国产日韩精品| 精品福利在线导航| 99re这里只有精品首页| 一区二区三区四区亚洲| 欧美理论片在线| 国产大陆a不卡| 综合网在线视频| 日本精品一区二区三区四区的功能| 亚洲韩国一区二区三区| 欧美成人aa大片| 99久久er热在这里只有精品15| 性做久久久久久免费观看| 欧美成人vps| 色一情一乱一乱一91av| 五月激情丁香一区二区三区| 久久精品免视看| 欧美日韩你懂的| 国产v综合v亚洲欧| 婷婷久久综合九色国产成人| 国产欧美va欧美不卡在线| 欧美视频在线不卡| a级精品国产片在线观看| 亚洲福利视频导航| 最新国产成人在线观看| 精品日韩一区二区| 欧美日韩免费在线视频| 国产精品一区二区免费不卡| 亚洲gay无套男同| 一区免费观看视频| 精品99久久久久久| 911精品产国品一二三产区| 成人黄色777网| 捆绑紧缚一区二区三区视频| 日韩美女啊v在线免费观看| 精品久久五月天| 91精品国产91综合久久蜜臀| 99久久久精品| 国产成人在线看| 久久99久久99| 日日摸夜夜添夜夜添国产精品 | 91精品国产综合久久蜜臀| 懂色av一区二区三区免费看| 另类综合日韩欧美亚洲| 亚洲成av人片一区二区三区| 亚洲免费三区一区二区| 精品国产百合女同互慰| 欧美一区二区三区小说| 欧美日韩亚洲综合在线| 国产综合成人久久大片91| 亚洲麻豆国产自偷在线| 国产精品视频一区二区三区不卡| 日韩美女一区二区三区四区| 欧美精品tushy高清| 日本韩国视频一区二区| 成av人片一区二区| 日本欧美一区二区在线观看| 亚洲 欧美综合在线网络| 亚洲成人精品一区二区| 一区二区三区欧美日韩| 亚洲成av人综合在线观看| 亚洲一区二区中文在线| 亚洲狠狠丁香婷婷综合久久久| 亚洲欧美在线高清| 亚洲三级电影网站| 一区二区在线看| 亚洲一区二区三区四区在线观看 | 欧美精品丝袜中出| 日韩免费一区二区三区在线播放| 久久久精品国产免费观看同学| 一区在线观看视频| 日韩av一区二区三区四区| 国产91对白在线观看九色| 在线视频一区二区免费| 日韩欧美在线1卡| 国产精品国产三级国产aⅴ原创| 性做久久久久久久免费看| 国产一区二区三区美女| 色激情天天射综合网| 欧美精品一区二区三区蜜臀| 亚洲特级片在线| 激情欧美日韩一区二区| 91美女视频网站| 久久中文字幕电影| 亚洲国产cao| 成人aa视频在线观看| 日韩精品影音先锋| 亚洲黄色av一区| 成人午夜碰碰视频| 日韩免费观看2025年上映的电影 | 色哟哟精品一区| 国产亚洲一本大道中文在线| 亚洲gay无套男同| 99久久伊人久久99| 日韩三级在线观看| 亚洲国产毛片aaaaa无费看| 国产不卡在线一区| 日韩欧美aaaaaa| 日韩av电影一区| 欧美视频一区二区三区在线观看| 国产欧美综合色| 狠狠色综合播放一区二区| 7777精品久久久大香线蕉| 亚洲日本免费电影| 成人av资源在线| 日本一区二区三区四区在线视频| 日韩精品一二三区| 欧美日韩久久久| 夜夜精品浪潮av一区二区三区| 99国产精品国产精品毛片| 久久久久一区二区三区四区| 视频一区二区不卡| 欧美日韩一区中文字幕| 亚洲一线二线三线视频| 日本伦理一区二区| 亚洲欧美二区三区| 91在线你懂得| 亚洲色图制服丝袜| 色婷婷亚洲综合| 亚洲黄一区二区三区| 在线视频综合导航| 亚洲尤物视频在线| 在线观看国产日韩| 午夜激情一区二区三区| 91麻豆精品国产无毒不卡在线观看| 午夜亚洲国产au精品一区二区|