version 1.193, 2017/03/22 07:14:18 |
version 1.194, 2017/03/24 03:45:02 |
Line 1026 ifa_ifwithroute_psref(int flags, const s |
|
Line 1026 ifa_ifwithroute_psref(int flags, const s |
|
|
|
/* XXX we cannot call rtalloc1 if holding the rt lock */ |
/* XXX we cannot call rtalloc1 if holding the rt lock */ |
if (RT_LOCKED()) |
if (RT_LOCKED()) |
rt = rtalloc1_locked(dst, 0, true); |
rt = rtalloc1_locked(gateway, 0, true); |
else |
else |
rt = rtalloc1(dst, 0); |
rt = rtalloc1(gateway, 0); |
if (rt == NULL) |
if (rt == NULL) |
return NULL; |
return NULL; |
|
if (rt->rt_flags & RTF_GATEWAY) { |
|
rt_unref(rt); |
|
return NULL; |
|
} |
/* |
/* |
* Just in case. May not need to do this workaround. |
* Just in case. May not need to do this workaround. |
* Revisit when working on rtentry MP-ification. |
* Revisit when working on rtentry MP-ification. |