Pass provided af instead of AF_UNSPEC to setwa_f callback.
This commit is contained in:
parent
05c3dfeedf
commit
e4790abf19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290828
@ -845,7 +845,7 @@ rt_foreach_fib_walk(int af, rt_setwarg_t *setwa_f, rt_walktree_f_t *wa_f,
|
||||
if (rnh == NULL)
|
||||
continue;
|
||||
if (setwa_f != NULL)
|
||||
setwa_f(rnh, fibnum, AF_UNSPEC, arg);
|
||||
setwa_f(rnh, fibnum, af, arg);
|
||||
|
||||
RADIX_NODE_HEAD_LOCK(rnh);
|
||||
rnh->rnh_walktree(rnh, (walktree_f_t *)wa_f, arg);
|
||||
|
Loading…
Reference in New Issue
Block a user