From fda44bcae38083716d5b4788689f3146651d11d0 Mon Sep 17 00:00:00 2001 From: sumikawa Date: Tue, 19 Jun 2001 14:48:02 +0000 Subject: [PATCH] Add IFT_L2VLAN for supported NDP type. IPv6 over VLAN works now. Obtained from: KAME MFC after: 2 weeks --- sys/netinet6/nd6.c | 6 ++++++ sys/netinet6/nd6_nbr.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 270550bf4903..6c727cd054a4 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -2006,6 +2006,9 @@ nd6_need_cache(ifp) case IFT_ETHER: case IFT_FDDI: case IFT_IEEE1394: +#ifdef IFT_L2VLAN + case IFT_L2VLAN: +#endif #ifdef IFT_IEEE80211 case IFT_IEEE80211: #endif @@ -2031,6 +2034,9 @@ nd6_storelladdr(ifp, rt, m, dst, desten) switch (ifp->if_type) { case IFT_ETHER: case IFT_FDDI: +#ifdef IFT_L2VLAN + case IFT_L2VLAN: +#endif #ifdef IFT_IEEE80211 case IFT_IEEE80211: #endif diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 7527d432ba83..9de830be955d 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -967,6 +967,9 @@ nd6_ifptomac(ifp) case IFT_ETHER: case IFT_FDDI: case IFT_IEEE1394: +#ifdef IFT_L2VLAN + case IFT_L2VLAN: +#endif #ifdef IFT_IEEE80211 case IFT_IEEE80211: #endif