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

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

?? routelib.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
* constants as valid values: * *     IPTOS_LOWDELAY*     IPTOS_THROUGHPUT*     IPTOS_RELIABILITY*     IPTOS_MINCOST** Use <flags> to specify any flags * you want to associate with this entry.  The valid non-zero values * are RTF_HOST and RTF_CLONING defined in net/route.h.** EXAMPLE* To add a route to the 90.0.0.0 network through 91.0.0.3: * .CS*     -> mRouteAdd ("90.0.0.0", "91.0.0.3", 0xffffff00, 0, 0);* .CE** Using mRouteAdd(), you could create multiple routes to the same destination.* VxWorks would distinguish among these routes based on factors such as the * netmask or the type of service.  Thus, it is perfectly legal to say:* .CS*     -> mRouteAdd ("90.0.0.0", "91.0.0.3", 0xffffff00, 0, 0);* *     -> mRouteAdd ("90.0.0.0", "91.0.0.254", 0xffff0000, 0, 0);* .CE* This adds two routes to the same network, "90.0.0.0", that go by two* different gateways.  The differentiating factor is the netmask.** This routine adds a route of type `M2_ipRouteProto_other', which is a* static route.  This route will not be modified or deleted until a* call to mRouteDelete() removes it.** RETURNS: OK or ERROR.** SEE ALSO: mRouteEntryAdd(), mRouteDelete(), routeAdd()*/STATUS mRouteAdd     (    char *           pDest,    /* destination addr in internet dot notation */    char *           pGate,    /* gateway address in internet dot notation */    long             mask,     /* mask for destination */    int              tos,      /* type of service */    int              flags     /* route flags */     )    {    long          destIp;    long          gateIp;    if (((destIp = (long) inet_addr (pDest)) == ERROR) ||	 ((gateIp = (long) inet_addr (pGate)) == ERROR))        {        return (ERROR);        }    mask = htonl (mask);    return (mRouteEntryAdd (destIp, gateIp, mask, tos, flags,                            M2_ipRouteProto_other));    }    /********************************************************************************* mPrivRouteEntryAdd - add a route to the routing table ** A route to the destination <pDest> with gateway <pGate>, destination mask* <mask>, and the type of service <tos> is added to the routing table.  <flags>* specifies any flags associated with this entry.  Valid  values for <flags> * are 0, RTF_HOST and RTF_CLONING as  defined in net/route.h.  The <proto> * parameter identifies the protocol that generated this route.  Values for * <proto> may be found in m2Lib.h and <tos> is one of following values defined * in netinet/ip.h:* *     IPTOS_LOWDELAY*     IPTOS_THROUGHPUT*     IPTOS_RELIABILITY*     IPTOS_MINCOST** This routine is the internal version of mRouteEntryAdd() and allows* you to get a ptr to the routing entry added, which is not available* with mRouteEntryAdd().** RETURNS: OK or ERROR.** NOMANUAL*/STATUS mPrivRouteEntryAdd     (    long             destIp,    /* destination address, network order */    long             gateIp,    /* gateway address, network order */    long             mask,      /* mask for destination, network order */    int              tos,       /* type of service */    int              flags,     /* route flags */     int              proto,      /* routing protocol */    struct rtentry ** ppRtEntry  /* for returning ptr to new entry added */    )    {    struct sockaddr_in      destSock;  /* destination socket */    struct sockaddr_in      gateSock;  /* gateway socket */    struct sockaddr_in      maskSock;  /* destination  mask socket */    if ((mask != 0) && (flags & RTF_HOST)) 	{        return (ERROR);	}    bzero ((caddr_t)  & destSock, sizeof (destSock));    bzero ((caddr_t)  & gateSock, sizeof (gateSock));    bzero ((caddr_t)  & maskSock, sizeof (maskSock));    destSock.sin_addr.s_addr = (mask != 0) ?  (destIp & mask) :			       destIp;    gateSock.sin_addr.s_addr = gateIp;    destSock.sin_family = gateSock.sin_family = maskSock.sin_family = AF_INET;    destSock.sin_len = gateSock.sin_len = maskSock.sin_len = sizeof (destSock);    /* set gateway flag if not a direct route */    if (ifa_ifwithaddr ((struct sockaddr *) & gateSock) == NULL)        flags |= RTF_GATEWAY;    if (mask == 0xffffffff)        flags |= RTF_GATEWAY;    maskSock.sin_addr.s_addr = mask;    TOS_SET (&maskSock, 0x1f);    in_socktrim (&maskSock);    TOS_SET (&destSock, tos);    RT_PROTO_SET (&destSock, proto);    /*     * Add the static route using the default weight value. Report the     * change using both routing socket messages and direct callbacks.     */    return (rtrequestAddEqui ((struct sockaddr*) &destSock,			      (struct sockaddr*) &maskSock,			      (struct sockaddr*) &gateSock, flags, proto, 0,			      TRUE, TRUE, (ROUTE_ENTRY**)ppRtEntry));    }/********************************************************************************* mRouteEntryAdd - add a protocol-specific route to the routing table ** For a single destination <destIp>, this routine can add additional * routes <gateIp> to the routing table.  The different routes are * distinguished by the gateway, a destination mask <mask>, * the type of service <tos> and associated flag values <flags>.  * Valid values for <flags> are 0, RTF_HOST, RTF_CLONING (defined in net/route.h).* The <proto> parameter identifies the protocol that generated this route.  * Values for <proto> may be found in m2Lib.h.  The <tos> parameter takes one of * following values (defined in netinet/ip.h): * *     IPTOS_LOWDELAY*     IPTOS_THROUGHPUT*     IPTOS_RELIABILITY*     IPTOS_MINCOST** RETURNS: OK or ERROR.** SEE ALSO: m2Lib.h, mRouteAdd(), mRouteDelete()*/STATUS mRouteEntryAdd     (    long             destIp,    /* destination address, network order */    long             gateIp,    /* gateway address, network order */    long             mask,      /* mask for destination, network order */    int              tos,       /* type of service */    int              flags,     /* route flags */     int              proto      /* routing protocol */    )    {    return (mPrivRouteEntryAdd (destIp, gateIp, mask, tos, flags, proto,                                NULL));    }/********************************************************************************* mRouteEntryDelete - delete route from the routing table ** This routine deletes a protocol-specific route from the routing * table.  Specify the route using a destination <pDest>, a gateway <pGate>, * a destination mask <mask>, the type of service <tos>, a <flags> value, * and a <proto> value that identifies the routing protocol that added the * route.  The valid values for <flags> are 0 and RTF_HOST  (defined * in net/route.h).  Values for <proto> may be found in m2Lib.h and <tos> * is one of the following values defined in netinet/ip.h:**     IPTOS_LOWDELA*     IPTOS_THROUGHPU*     IPTOS_RELIABILIT*     IPTOS_MINCOST** An existing route is deleted only if it is owned by the protocol specified * by <proto>.** RETURNS: OK or ERROR.**/STATUS mRouteEntryDelete    (    long             destIp,    /* destination address, network order */    long             gateIp,    /* gateway address, network order */    long             mask,      /* mask for destination, network order */    int              tos,       /* type of service */    int              flags,     /* route flags */     int              proto      /* routing protocol */    )    {    struct sockaddr_in      destSock;  /* destination socket */    struct sockaddr_in      gateSock;  /* gateway socket */    struct sockaddr_in      maskSock;  /* destination  mask socket */    if ((mask != 0) && (flags & RTF_HOST)) 	{        return (ERROR);	}    bzero ((caddr_t)  & destSock, sizeof (destSock));    bzero ((caddr_t)  & gateSock, sizeof (gateSock));    bzero ((caddr_t)  & maskSock, sizeof (maskSock));    destSock.sin_addr.s_addr = (mask != 0) ?  (destIp & mask) :			       destIp;    gateSock.sin_addr.s_addr = gateIp;    destSock.sin_family = gateSock.sin_family = maskSock.sin_family = AF_INET;    destSock.sin_len = gateSock.sin_len = maskSock.sin_len = sizeof (destSock);    /* set gateway flag if not a direct route */    if (ifa_ifwithaddr ((struct sockaddr *) & gateSock) == NULL)        flags |= RTF_GATEWAY;    maskSock.sin_addr.s_addr = mask;    TOS_SET (&maskSock, 0x1f);    in_socktrim (&maskSock);    if (mask == 0xffffffff)        flags |= RTF_GATEWAY;    TOS_SET (&destSock, tos);    /*     * Remove the matching route. Report the change using     * both routing socket messages and direct callbacks.     */    /* check required to support: mRouteDelete() with routing extensions */    if(gateIp==0)        {        return(rtrequestDelEqui((struct sockaddr*) &destSock,                                (struct sockaddr*) &maskSock,                                0, flags, proto, TRUE, TRUE, NULL));        }    else        {        return(rtrequestDelEqui((struct sockaddr*) &destSock,                                (struct sockaddr*) &maskSock,                                (struct sockaddr*) &gateSock, flags, proto,                                TRUE, TRUE, NULL));        }    }/********************************************************************************* mPrivRouteEntryDelete - delete a held route from the routing table ** This routine deletes a protocol-specific route from the routing * table when mPrivRouteEntryAdd retained a copy of the new route* with the <pRoute> pointer. The routine calls rtfree to adjust the* reference count then passes the remaining arguments to the * mRouteEntryDelete routine to remove the route. ** RETURNS: OK or ERROR.** NOMANUAL*/STATUS mPrivRouteEntryDelete    (    long             destIp,    /* destination address, network order */    long             gateIp,    /* gateway address, network order */    long             mask,      /* mask for destination, network order */    int              tos,       /* type of service */    int              flags,     /* route flags */     int              proto,     /* routing protocol */    struct rtentry * pRoute    )    {    int 	s;    STATUS 	result;    s = splnet ();    if (pRoute)        rtfree (pRoute);    result = mRouteEntryDelete (destIp, gateIp, mask, tos, flags, proto);    splx (s);    return (result);    }/********************************************************************************* mRouteDelete - delete a route from the routing table ** This routine deletes a routing table entry as specified by the* destination, <pDest>, the destination mask, <mask>, and type of service,* <tos>.  The <tos> values are as defined in the reference entry for* mRouteAdd().** EXAMPLE* Consider the case of a route added in the following manner:* .CS*     -> mRouteAdd ("90.0.0.0", "91.0.0.3", 0xffffff00, 0, 0);* .CE* To delete a route that was added in the above manner, call mRouteDelete()* as follows:* .CS*     -> mRouteDelete("90.0.0.0", 0xffffff00, 0);* .CE** If the netmask and or type of service do not match, the route* is not deleted.** The value of <flags> should be RTF_HOST for host routes, RTF_CLONING for* routes which need to be cloned, and 0 in all other cases.** RETURNS: OK or ERROR.  ** SEE ALSO: mRouteAdd()*/STATUS mRouteDelete    (    char *           pDest,    /* destination address */    long             mask,     /* mask for destination */    int              tos,      /* type of service */    int              flags     /* either 0 or RTF_HOST */    )    {    struct sockaddr_in      destSock;  /* destination socket */    struct sockaddr_in      maskSock;  /* destination  mask socket */    if ((mask != 0) && (flags & RTF_HOST)) 	{        return (ERROR);	}    bzero ((caddr_t)  & destSock, sizeof (destSock));    bzero ((caddr_t)  & maskSock, sizeof (maskSock));    if ((destSock.sin_addr.s_addr = (long) inet_addr (pDest)) == ERROR)        {        return (ERROR);        }    mask = htonl (mask);    if (mask != 0)        destSock.sin_addr.s_addr &= mask;    destSock.sin_family  = maskSock.sin_family = AF_INET;    destSock.sin_len =  maskSock.sin_len = sizeof (destSock);    maskSock.sin_addr.s_addr = mask;    TOS_SET (&maskSock, 0x1f);    in_socktrim (&maskSock);    TOS_SET (&destSock, tos);    /*     * Remove the matching route. Report the change using     * both routing socket messages and direct callbacks.     */    return(rtrequestDelEqui((struct sockaddr*) &destSock,                            (struct sockaddr*) &maskSock, NULL, flags,                            M2_ipRouteProto_other, TRUE, TRUE, NULL));    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费看视频| 国产精品自拍在线| 亚洲免费大片在线观看| 久久亚洲精华国产精华液| 制服丝袜亚洲精品中文字幕| 91麻豆文化传媒在线观看| 成人高清视频免费观看| 国产精品夜夜爽| 国内精品不卡在线| 国产suv精品一区二区三区| 国产一区二区精品久久| 精品中文字幕一区二区| 色综合久久天天| 精品少妇一区二区三区免费观看| 欧美一区二区三区公司| 538在线一区二区精品国产| 日韩一区二区在线看| 91精品国产一区二区| 亚洲精品午夜久久久| 伊人性伊人情综合网| 亚洲一区在线看| 日本欧美加勒比视频| 欧美bbbbb| 9l国产精品久久久久麻豆| 91在线码无精品| 777午夜精品视频在线播放| 精品人在线二区三区| 久久久国产精品午夜一区ai换脸| 国产精品乱码人人做人人爱| 一二三区精品视频| 蜜桃视频在线观看一区二区| 国产精品资源在线看| 欧美性猛交xxxx乱大交退制版 | 日本久久电影网| 欧美日韩不卡一区二区| 久久亚洲精华国产精华液| 国产精品灌醉下药二区| 日日摸夜夜添夜夜添亚洲女人| 国产一区欧美日韩| 欧美性猛交xxxxxx富婆| 久久久久九九视频| 日韩电影免费在线| 色狠狠色狠狠综合| 国产欧美日韩麻豆91| 婷婷综合另类小说色区| 91丨九色丨蝌蚪富婆spa| 欧美一级黄色录像| 亚洲综合激情另类小说区| 日韩一区二区免费电影| 国产欧美一区在线| 精品一区二区三区久久| 欧美日韩高清一区二区三区| 亚洲三级在线看| 成人av免费在线播放| 久久久久97国产精华液好用吗| 日本中文字幕一区二区有限公司| 色狠狠av一区二区三区| 日韩伦理av电影| av亚洲精华国产精华精| 国产日韩在线不卡| 精品一区二区三区在线视频| 欧美一区二区三区日韩视频| 首页国产丝袜综合| 欧美久久久久免费| 日本 国产 欧美色综合| 欧美一区二区久久久| 蜜桃视频在线一区| 精品成人一区二区三区四区| 国产一区二区中文字幕| 久久综合色播五月| 国产传媒一区在线| 国产精品五月天| 欧美午夜寂寞影院| 免费精品视频在线| 久久久久久免费网| 99久久免费国产| 亚洲成人免费影院| 日韩免费福利电影在线观看| 国产精品123区| 亚洲美女在线一区| 777精品伊人久久久久大香线蕉| 久久99这里只有精品| 亚洲同性gay激情无套| 欧美美女喷水视频| 国产精品一色哟哟哟| 亚洲欧美精品午睡沙发| 日韩三级视频在线看| a在线欧美一区| 日韩激情视频网站| 国产精品福利影院| 日韩小视频在线观看专区| 成人亚洲精品久久久久软件| 国产在线视频一区二区三区| 亚洲欧美日本韩国| 久久影音资源网| 在线免费不卡视频| 国产91丝袜在线播放| 色综合天天狠狠| 国产精品亚洲午夜一区二区三区 | 91麻豆swag| 国产成人在线视频网址| 秋霞av亚洲一区二区三| 亚洲蜜臀av乱码久久精品蜜桃| 久久亚洲一区二区三区明星换脸| 欧美色网站导航| 91在线视频官网| 福利视频网站一区二区三区| 麻豆国产精品视频| 天天色综合天天| 午夜视频久久久久久| 一区二区高清免费观看影视大全| 国产精品久久久久久久久久免费看| 精品三级在线看| 欧美一区二区观看视频| 欧美丝袜第三区| 欧美久久一区二区| 日韩一区二区三区三四区视频在线观看 | 国产精品99久久久久久似苏梦涵| 日韩精品1区2区3区| 久久精品久久精品| 精品一区二区三区av| 美女视频一区在线观看| 国产伦精品一区二区三区免费 | 91亚洲资源网| 在线观看免费成人| 欧美一区二区三区日韩| 日韩精品一区二区三区中文不卡| 日韩一级二级三级精品视频| 欧美精品一区二区三区蜜臀| 久久精品一区蜜桃臀影院| 日韩主播视频在线| 久久精品久久精品| kk眼镜猥琐国模调教系列一区二区| 色综合天天综合网国产成人综合天 | 极品美女销魂一区二区三区 | 国内一区二区视频| 99久久久精品| 日韩欧美在线综合网| 国产精品国产三级国产普通话蜜臀 | 中文子幕无线码一区tr| 一区二区三区在线播放| 精品一区二区三区免费观看| 91丨porny丨户外露出| 欧美一区二区三区免费在线看 | 亚洲国产精品精华液2区45| 午夜电影网亚洲视频| 国产大片一区二区| 69久久99精品久久久久婷婷| 国产精品女主播av| 国产在线精品免费av| 欧美日韩国产一区| 国产精品国产三级国产aⅴ无密码| 青青草97国产精品免费观看 | 午夜不卡av免费| 91福利在线看| 国产精品国产三级国产有无不卡| 六月婷婷色综合| 555夜色666亚洲国产免| 亚洲一线二线三线久久久| 99视频精品免费视频| 中文字幕欧美国产| 国产高清在线观看免费不卡| 欧美高清性hdvideosex| 亚洲国产三级在线| 色欧美日韩亚洲| 蜜臀a∨国产成人精品| 色婷婷综合久久久中文一区二区| 中文字幕亚洲区| 不卡的电影网站| 亚洲欧洲日韩在线| 99v久久综合狠狠综合久久| 综合色天天鬼久久鬼色| 色综合欧美在线视频区| 亚洲激情男女视频| 在线观看一区二区视频| 亚洲欧美色一区| 91精品国产美女浴室洗澡无遮挡| 午夜国产不卡在线观看视频| 欧美一区二区三区在线观看视频| 免费成人美女在线观看.| 久久综合久色欧美综合狠狠| 国产成人亚洲综合a∨猫咪| 亚洲麻豆国产自偷在线| 欧美伊人久久大香线蕉综合69| 午夜久久久久久电影| 日韩精品一区二区三区三区免费| 国产一区二区三区日韩| 亚洲免费电影在线| 欧美成人vps| caoporn国产精品| 另类专区欧美蜜桃臀第一页| 国产日韩欧美电影| 国产三级久久久| 欧美男生操女生| 99久久精品国产麻豆演员表| 午夜精品视频一区| 国产精品无人区| 日韩午夜小视频| 欧美在线不卡一区| 丁香婷婷综合五月|