From 8e35a152ff3900213b837f830cba24d37cfff11b Mon Sep 17 00:00:00 2001 From: jinmei Date: Sat, 6 Jan 2001 07:03:00 +0000 Subject: [PATCH] allow binding to a deprecated address. --- freebsd4/sys/netinet6/in6_pcb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/freebsd4/sys/netinet6/in6_pcb.c b/freebsd4/sys/netinet6/in6_pcb.c index fa40634162..27fc1935c6 100644 --- a/freebsd4/sys/netinet6/in6_pcb.c +++ b/freebsd4/sys/netinet6/in6_pcb.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/netinet6/in6_pcb.c,v 1.10.2.2 2000/07/15 07:14:33 kris Exp $ */ -/* $KAME: in6_pcb.c,v 1.26 2000/12/01 05:31:28 jinmei Exp $ */ +/* $KAME: in6_pcb.c,v 1.27 2000/12/01 05:32:08 jinmei Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -167,11 +167,12 @@ in6_pcbbind(inp, nam, p) /* * XXX: bind to an anycast address might accidentally * cause sending a packet with anycast source address. + * We should allow to bind to a deprecated address, since + * the application dare to use it. */ if (ia && ((struct in6_ifaddr *)ia)->ia6_flags & - (IN6_IFF_ANYCAST|IN6_IFF_NOTREADY| - IN6_IFF_DETACHED|IN6_IFF_DEPRECATED)) { + (IN6_IFF_ANYCAST|IN6_IFF_NOTREADY|IN6_IFF_DETACHED)) { return(EADDRNOTAVAIL); } }