diff options
author | 1995-12-18 17:51:23 +0000 | |
---|---|---|
committer | 1995-12-18 17:51:23 +0000 | |
commit | 7afdf2df1ca09ffc9d438567fb7391f8a3b14b57 (patch) | |
tree | cd2ca42fd2c05d13ed703a391d373267bc1db078 | |
parent | from netbsd (diff) | |
download | wireguard-openbsd-7afdf2df1ca09ffc9d438567fb7391f8a3b14b57.tar.xz wireguard-openbsd-7afdf2df1ca09ffc9d438567fb7391f8a3b14b57.zip |
enable multicast, so that multicast packets can flow through ppp links. idea from freebsd
-rw-r--r-- | sys/net/if_ppp.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 8eb431dee11..db25329fa99 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -188,7 +188,7 @@ pppattach() sc->sc_if.if_name = "ppp"; sc->sc_if.if_unit = i++; sc->sc_if.if_mtu = PPP_MTU; - sc->sc_if.if_flags = IFF_POINTOPOINT; + sc->sc_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST; sc->sc_if.if_type = IFT_PPP; sc->sc_if.if_hdrlen = PPP_HDRLEN; sc->sc_if.if_ioctl = pppsioctl; @@ -522,6 +522,19 @@ pppsioctl(ifp, cmd, data) ifr->ifr_mtu = sc->sc_if.if_mtu; break; + case SIOCADDMULTI: + case SIOCDELMULTI: + switch (ifr->ifr_addr.sa_family) { +#ifdef INET + case AF_INET: + break; +#endif + default: + error = EAFNOSUPPORT; + break; + } + break; + case SIOCGPPPSTATS: psp = &((struct ifpppstatsreq *) data)->stats; bzero(psp, sizeof(*psp)); |