K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-11-03T12:02:10.000000Z K 7 svn:log V 1285 Several fixes to ARP and route locking, that were done during 6.0 release cycle, and are also applicable to RELENG_5: o Make rt_check() return a locked rtentry. o Make rt_check() function more strict: - rt0 passed to rt_check() must not be NULL, assert this. - rt returned by rt_check() must be valid locked rtentry, if no error occured. o Modify callers, so that they never pass NULL rt0 to rt_check(). o Modify callers, so that they unlock rtentry. o Fix races in ARP code. See if_ether.c 1.139 for more information. o Fix LORs in ARP code. See if_ether.c 1.141 for more information. o Lock rtentry before dropping radix lock. o Send published ARP replies only on correct interface. [1] o Drop rtentry lock before calling rt_getifa(). [2] o Fixes to rt_setgate(): - To avoid recursive rtentry locking. - Do not change routes in case of failure. - Return EADDRINUSE instead of bogus EDQUOT [3] Revisions merged: net/if_atmsubr.c - 1.39, 1.41 net/if_fwsubr.c - 1.13, 1.15 net/if_iso88025subr.c - 1.69, 1.71 net/route.c - 1.110, 1.111, 1.113 net/rtsock.c - 1.110, 1.111, 1.126, 1.130 netinet6/nd6.c - 1.51-1.53 netinet/if_ether.c - 1.139, 1.140, 1.141 PR: kern/75634 [1] PR: kern/69356 [2] PR: kern/64090 [3] END