| 1446 | } |
| 1447 | |
| 1448 | static int |
| 1449 | vxlan_setup_multicast_interface(struct vxlan_softc *sc) |
| 1450 | { |
| 1451 | struct ifnet *ifp; |
| 1452 | |
| 1453 | ifp = ifunit_ref(sc->vxl_mc_ifname); |
| 1454 | if (ifp == NULL) { |
| 1455 | if_printf(sc->vxl_ifp, "multicast interface %s does " |
| 1456 | "not exist\n", sc->vxl_mc_ifname); |
| 1457 | return (ENOENT); |
| 1458 | } |
| 1459 | |
| 1460 | if ((ifp->if_flags & IFF_MULTICAST) == 0) { |
| 1461 | if_printf(sc->vxl_ifp, "interface %s does not support " |
| 1462 | "multicast\n", sc->vxl_mc_ifname); |
| 1463 | if_rele(ifp); |
| 1464 | return (ENOTSUP); |
| 1465 | } |
| 1466 | |
| 1467 | sc->vxl_mc_ifp = ifp; |
| 1468 | sc->vxl_mc_ifindex = ifp->if_index; |
| 1469 | |
| 1470 | return (0); |
| 1471 | } |
| 1472 | |
| 1473 | static int |
| 1474 | vxlan_setup_multicast(struct vxlan_softc *sc) |
no test coverage detected