Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet6/in6_ifattach.c
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | case IFT_STF: | ||||
* RFC2893 says: "SHOULD use IPv4 address as ifid source". | * RFC2893 says: "SHOULD use IPv4 address as ifid source". | ||||
* however, IPv4 address is not very suitable as unique | * however, IPv4 address is not very suitable as unique | ||||
* identifier source (can be renumbered). | * identifier source (can be renumbered). | ||||
* we don't do this. | * we don't do this. | ||||
*/ | */ | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
return -1; | return -1; | ||||
case IFT_INFINIBAND: | |||||
if (addrlen != 20) { | |||||
NET_EPOCH_EXIT(et); | |||||
return -1; | |||||
} | |||||
bcopy(addr + 12, &in6->s6_addr[8], 8); | |||||
break; | |||||
default: | default: | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
return -1; | return -1; | ||||
} | } | ||||
/* sanity check: g bit must not indicate "group" */ | /* sanity check: g bit must not indicate "group" */ | ||||
if (EUI64_GROUP(in6)) { | if (EUI64_GROUP(in6)) { | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
▲ Show 20 Lines • Show All 562 Lines • Show Last 20 Lines |