no longer need IFT_PROPVIRTUAL "bridge[0-9]+" check.

This commit is contained in:
itojun 2002-05-23 06:40:03 +00:00
parent 3f3c4827e0
commit 64a1cfbf83

View File

@ -1,4 +1,4 @@
/* $NetBSD: in6_ifattach.c,v 1.43 2002/05/23 06:35:18 itojun Exp $ */
/* $NetBSD: in6_ifattach.c,v 1.44 2002/05/23 06:40:03 itojun Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in6_ifattach.c,v 1.43 2002/05/23 06:35:18 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: in6_ifattach.c,v 1.44 2002/05/23 06:40:03 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -582,12 +582,6 @@ in6_ifattach(ifp, altifp)
switch (ifp->if_type) {
case IFT_BRIDGE:
return;
case IFT_PROPVIRTUAL:
if (strncmp("bridge", ifp->if_xname, sizeof("bridge")) == 0 &&
'0' <= ifp->if_xname[sizeof("bridge")] &&
ifp->if_xname[sizeof("bridge")] <= '9')
return;
break;
}
/*