Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   ozaki-r
Date:           Tue Oct 30 05:54:42 UTC 2018

Modified Files:
        src/sys/net: if.c route.c route.h
        src/sys/netinet: if_arp.c
        src/sys/netinet6: nd6.c

Log Message:
Avoid double rt_replace_ifa on rtrequest1(RTM_ADD)

Some callers of rtrequest1(RTM_ADD) adjust rt_ifa of an rtentry created by
rtrequest1 that may change rt_ifa (in ifa_rtrequest) with another ifa that is
different from requested one.  It's wasteful and even worse introduces a race
condition.  rtrequest1 should just use a passed ifa as is if a caller hopes so.


To generate a diff of this commit:
cvs rdiff -u -r1.439 -r1.440 src/sys/net/if.c
cvs rdiff -u -r1.214 -r1.215 src/sys/net/route.c
cvs rdiff -u -r1.119 -r1.120 src/sys/net/route.h
cvs rdiff -u -r1.275 -r1.276 src/sys/netinet/if_arp.c
cvs rdiff -u -r1.250 -r1.251 src/sys/netinet6/nd6.c

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




Home | Main Index | Thread Index | Old Index