Home
last modified time | relevance | path

Searched refs:nhlen (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c216 int nhlen = RTA_PAYLOAD(rta); in fib_count_nexthops() local
218 while (nhlen >= (int)sizeof(struct rtnexthop)) { in fib_count_nexthops()
219 if ((nhlen -= nhp->rtnh_len) < 0) in fib_count_nexthops()
231 int nhlen = RTA_PAYLOAD(rta); in fib_get_nhs() local
234 int attrlen = nhlen - sizeof(struct rtnexthop); in fib_get_nhs()
235 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in fib_get_nhs()
258 int nhlen; in fib_nh_match() local
276 nhlen = RTA_PAYLOAD(rta->rta_mp); in fib_nh_match()
279 int attrlen = nhlen - sizeof(struct rtnexthop); in fib_nh_match()
282 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in fib_nh_match()
/linux-2.4.37.9/net/decnet/
Ddn_fib.c157 int nhlen = RTA_PAYLOAD(rta); in dn_fib_count_nhs() local
159 while(nhlen >= (int)sizeof(struct rtnexthop)) { in dn_fib_count_nhs()
160 if ((nhlen -= nhp->rtnh_len) < 0) in dn_fib_count_nhs()
172 int nhlen = RTA_PAYLOAD(rta); in dn_fib_get_nhs() local
175 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_get_nhs()
176 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_get_nhs()
Ddn_table.c232 int nhlen; in dn_fib_nh_match() local
248 nhlen = RTA_PAYLOAD(rta->rta_mp); in dn_fib_nh_match()
251 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match()
254 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match()