Searched refs:rtnh (Results 1 - 6 of 6) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/net/ |
H A D | nexthop.h | 7 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) argument 9 return remaining >= sizeof(*rtnh) && 10 rtnh->rtnh_len >= sizeof(*rtnh) && 11 rtnh->rtnh_len <= remaining; 14 static inline struct rtnexthop *rtnh_next(const struct rtnexthop *rtnh, argument 17 int totlen = NLA_ALIGN(rtnh->rtnh_len); 20 return (struct rtnexthop *) ((char *) rtnh + totlen); 23 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) argument 25 return (struct nlattr *) ((char *) rtnh 28 rtnh_attrlen(const struct rtnexthop *rtnh) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ipv4/ |
H A D | fib_semantics.c | 377 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining) argument 381 while (rtnh_ok(rtnh, remaining)) { 383 rtnh = rtnh_next(rtnh, &remaining); 390 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, argument 396 if (!rtnh_ok(rtnh, remaining)) 400 (cfg->fc_flags & ~0xFF) | rtnh->rtnh_flags; 401 nexthop_nh->nh_oif = rtnh->rtnh_ifindex; 402 nexthop_nh->nh_weight = rtnh->rtnh_hops + 1; 404 attrlen = rtnh_attrlen(rtnh); 427 struct rtnexthop *rtnh; local 994 struct rtnexthop *rtnh; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iproute2/include/linux/ |
H A D | rtnetlink.h | 300 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 301 ((int)(rtnh)->rtnh_len) <= (len)) 302 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 305 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/ |
H A D | rtnetlink.h | 320 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 321 ((int)(rtnh)->rtnh_len) <= (len)) 322 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) 325 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/zebra/ |
H A D | rt_netlink.c | 1303 struct rtnexthop *rtnh; local 1307 rtnh = RTA_DATA(rta); 1321 rtnh->rtnh_len = sizeof (*rtnh); 1322 rtnh->rtnh_flags = 0; 1323 rtnh->rtnh_hops = 0; 1324 rta->rta_len += rtnh->rtnh_len; 1333 rtnh->rtnh_len += sizeof (struct rtattr) + 4; 1348 rtnh->rtnh_ifindex = nexthop->rifindex; 1350 rtnh [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iproute2/ip/ |
H A D | iproute.c | 585 int parse_one_nh(struct rtattr *rta, struct rtnexthop *rtnh, int *argcp, char ***argvp) argument 594 rtnh->rtnh_len += sizeof(struct rtattr) + 4; 597 if ((rtnh->rtnh_ifindex = ll_name_to_index(*argv)) == 0) { 606 rtnh->rtnh_hops = w - 1; 608 rtnh->rtnh_flags |= RTNH_F_ONLINK; 621 struct rtnexthop *rtnh; local 625 rtnh = RTA_DATA(rta); 636 memset(rtnh, 0, sizeof(*rtnh)); 637 rtnh [all...] |
Completed in 193 milliseconds