Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if_vxlan.c
Show First 20 Lines • Show All 1,128 Lines • ▼ Show 20 Lines | if (VXLAN_SOCKADDR_IS_IPV4(group)) { | ||||
* the local interface that was selected based on the | * the local interface that was selected based on the | ||||
* imr_interface address. We could then update *ifidx so | * imr_interface address. We could then update *ifidx so | ||||
* vxlan_sockaddr_mc_info_match() would return a match for | * vxlan_sockaddr_mc_info_match() would return a match for | ||||
* later creates that explicitly set the multicast interface. | * later creates that explicitly set the multicast interface. | ||||
* | * | ||||
* If we really need to, we can of course look in the INP's | * If we really need to, we can of course look in the INP's | ||||
* membership list: | * membership list: | ||||
* sotoinpcb(vso->vxlso_sock)->inp_moptions-> | * sotoinpcb(vso->vxlso_sock)->inp_moptions-> | ||||
* imo_membership[]->inm_ifp | * imo_head[]->imf_inm->inm_ifp | ||||
* similarly to imo_match_group(). | * similarly to imo_match_group(). | ||||
*/ | */ | ||||
source->in4.sin_addr = local->in4.sin_addr; | source->in4.sin_addr = local->in4.sin_addr; | ||||
} else if (VXLAN_SOCKADDR_IS_IPV6(group)) { | } else if (VXLAN_SOCKADDR_IS_IPV6(group)) { | ||||
struct ipv6_mreq mreq; | struct ipv6_mreq mreq; | ||||
mreq.ipv6mr_multiaddr = group->in6.sin6_addr; | mreq.ipv6mr_multiaddr = group->in6.sin6_addr; | ||||
▲ Show 20 Lines • Show All 2,031 Lines • Show Last 20 Lines |