Home
last modified time | relevance | path

Searched refs:nhs (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/decnet/
Ddn_fib.c155 int nhs = 0; in dn_fib_count_nhs() local
162 nhs++; in dn_fib_count_nhs()
166 return nhs; in dn_fib_count_nhs()
258 int nhs = 1; in dn_fib_create_info() local
267 nhs = dn_fib_count_nhs(rta->rta_mp); in dn_fib_create_info()
268 if (nhs == 0) in dn_fib_create_info()
272 fi = kmalloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL); in dn_fib_create_info()
276 memset(fi, 0, sizeof(*fi)+nhs*sizeof(struct dn_fib_nh)); in dn_fib_create_info()
279 fi->fib_nhs = nhs; in dn_fib_create_info()
316 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c214 int nhs = 0; in fib_count_nexthops() local
221 nhs++; in fib_count_nexthops()
224 return nhs; in fib_count_nexthops()
429 int nhs = 1; in fib_create_info() local
431 const int nhs = 1; in fib_create_info() local
443 nhs = fib_count_nexthops(rta->rta_mp); in fib_create_info()
444 if (nhs == 0) in fib_create_info()
449 fi = kmalloc(sizeof(*fi)+nhs*sizeof(struct fib_nh), GFP_KERNEL); in fib_create_info()
454 memset(fi, 0, sizeof(*fi)+nhs*sizeof(struct fib_nh)); in fib_create_info()
457 fi->fib_nhs = nhs; in fib_create_info()
[all …]