Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Allow bind to detached INET addresses.
details: https://anonhg.NetBSD.org/src/rev/a60e78c547e9
branches: trunk
changeset: 347450:a60e78c547e9
user: roy <roy%NetBSD.org@localhost>
date: Fri Aug 26 23:12:06 2016 +0000
description:
Allow bind to detached INET addresses.
diffstat:
sys/netinet/in_pcb.c | 6 +++---
sys/netinet/raw_ip.c | 8 +++-----
2 files changed, 6 insertions(+), 8 deletions(-)
diffs (56 lines):
diff -r ebe09bae956a -r a60e78c547e9 sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c Fri Aug 26 22:50:11 2016 +0000
+++ b/sys/netinet/in_pcb.c Fri Aug 26 23:12:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_pcb.c,v 1.168 2016/08/01 03:15:30 ozaki-r Exp $ */
+/* $NetBSD: in_pcb.c,v 1.169 2016/08/26 23:12:06 roy Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.168 2016/08/01 03:15:30 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.169 2016/08/26 23:12:06 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -297,7 +297,7 @@
}
if (ia == NULL)
goto error;
- if (ia->ia4_flags & (IN_IFF_NOTREADY | IN_IFF_DETACHED))
+ if (ia->ia4_flags & IN_IFF_NOTREADY)
goto error;
}
pserialize_read_exit(s);
diff -r ebe09bae956a -r a60e78c547e9 sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c Fri Aug 26 22:50:11 2016 +0000
+++ b/sys/netinet/raw_ip.c Fri Aug 26 23:12:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.159 2016/08/01 03:15:31 ozaki-r Exp $ */
+/* $NetBSD: raw_ip.c,v 1.160 2016/08/26 23:12:06 roy Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.159 2016/08/01 03:15:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.160 2016/08/26 23:12:06 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -581,9 +581,7 @@
error = EADDRNOTAVAIL;
goto release;
}
- if (ifa && (ifatoia(ifa))->ia4_flags &
- (IN6_IFF_NOTREADY | IN_IFF_DETACHED))
- {
+ if (ifa && (ifatoia(ifa))->ia4_flags & IN6_IFF_NOTREADY) {
pserialize_read_exit(ss);
error = EADDRNOTAVAIL;
goto release;
Home |
Main Index |
Thread Index |
Old Index