[BACK]Return to route.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/route.c between version 1.193 and 1.194

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.

Legend:
Removed from v.1.193  
changed lines
  Added in v.1.194

CVSweb <webmaster@jp.NetBSD.org>