Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Mention IPv6 address selection policy isn't MP-safe yet
details: https://anonhg.NetBSD.org/src/rev/a3469bb3a725
branches: trunk
changeset: 827950:a3469bb3a725
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Nov 20 09:01:20 2017 +0000
description:
Mention IPv6 address selection policy isn't MP-safe yet
Though it's not a problem until a policy is set.
diffstat:
doc/TODO.smpnet | 3 ++-
sys/netinet6/in6_src.c | 7 +++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r eff49273b3b4 -r a3469bb3a725 doc/TODO.smpnet
--- a/doc/TODO.smpnet Mon Nov 20 00:01:05 2017 +0000
+++ b/doc/TODO.smpnet Mon Nov 20 09:01:20 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.smpnet,v 1.16 2017/10/25 07:35:40 ozaki-r Exp $
+$NetBSD: TODO.smpnet,v 1.17 2017/11/20 09:01:20 ozaki-r Exp $
MP-safe components
==================
@@ -51,6 +51,7 @@
- MROUTING
- PIM
- MPLS (mpls(4))
+ - IPv6 address selection policy
- Layer 4
- DCCP
- SCTP
diff -r eff49273b3b4 -r a3469bb3a725 sys/netinet6/in6_src.c
--- a/sys/netinet6/in6_src.c Mon Nov 20 00:01:05 2017 +0000
+++ b/sys/netinet6/in6_src.c Mon Nov 20 09:01:20 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6_src.c,v 1.81 2017/09/17 17:35:10 christos Exp $ */
+/* $NetBSD: in6_src.c,v 1.82 2017/11/20 09:01:20 ozaki-r Exp $ */
/* $KAME: in6_src.c,v 1.159 2005/10/19 01:40:32 t-momose Exp $ */
/*
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.81 2017/09/17 17:35:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.82 2017/11/20 09:01:20 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -878,6 +878,9 @@
defaultaddrpolicy.label = ADDR_LABEL_NOTAPP;
}
+/*
+ * XXX: NOMPSAFE if a policy is set
+ */
static struct in6_addrpolicy *
lookup_addrsel_policy(struct sockaddr_in6 *key)
{
Home |
Main Index |
Thread Index |
Old Index