Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet6/mld6.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet6/mld6.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.86 retrieving revision 1.87 diff -u -p -r1.86 -r1.87 --- src/sys/netinet6/mld6.c 2017/03/02 05:27:39 1.86 +++ src/sys/netinet6/mld6.c 2017/03/02 09:16:46 1.87 @@ -1,4 +1,4 @@ -/* $NetBSD: mld6.c,v 1.86 2017/03/02 05:27:39 ozaki-r Exp $ */ +/* $NetBSD: mld6.c,v 1.87 2017/03/02 09:16:46 ozaki-r Exp $ */ /* $KAME: mld6.c,v 1.25 2001/01/16 14:14:18 itojun Exp $ */ /* @@ -102,7 +102,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.86 2017/03/02 05:27:39 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mld6.c,v 1.87 2017/03/02 09:16:46 ozaki-r Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -901,6 +901,20 @@ in6_purge_multi(struct ifnet *ifp) rw_exit(&in6_multilock); } +void +in6_multi_lock(int op) +{ + + rw_enter(&in6_multilock, op); +} + +void +in6_multi_unlock(void) +{ + + rw_exit(&in6_multilock); +} + struct in6_multi_mship * in6_joingroup(struct ifnet *ifp, struct in6_addr *addr, int *errorp, int timer)