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 Jun 21 10:25:27 UTC 2016

Modified Files:
        src/sys/net: if.c if.h
        src/sys/netinet6: icmp6.c in6_pcb.c in6_src.c ip6_output.c ip6_var.h
            nd6_nbr.c raw_ip6.c udp6_output.c

Log Message:
Make sure returning ifp from in6_select* functions psref-ed

To this end, callers need to pass struct psref to the functions
and the fuctions acquire a reference of ifp with it. In some cases,
we can simply use if_get_byindex, however, in other cases
(say rt->rt_ifp and ia->ifa_ifp), we have no MP-safe way for now.
In order to take a reference anyway we use non MP-safe function
if_acquire_NOMPSAFE for the latter cases. They should be fixed in
the future somehow.


To generate a diff of this commit:
cvs rdiff -u -r1.343 -r1.344 src/sys/net/if.c
cvs rdiff -u -r1.213 -r1.214 src/sys/net/if.h
cvs rdiff -u -r1.188 -r1.189 src/sys/netinet6/icmp6.c
cvs rdiff -u -r1.144 -r1.145 src/sys/netinet6/in6_pcb.c
cvs rdiff -u -r1.61 -r1.62 src/sys/netinet6/in6_src.c
cvs rdiff -u -r1.169 -r1.170 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.66 -r1.67 src/sys/netinet6/ip6_var.h
cvs rdiff -u -r1.120 -r1.121 src/sys/netinet6/nd6_nbr.c
cvs rdiff -u -r1.145 -r1.146 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.51 -r1.52 src/sys/netinet6/udp6_output.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