diff options
author | archie <archie@FreeBSD.org> | 1999-11-08 03:08:59 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-11-08 03:08:59 +0000 |
commit | 4ada2ddb7d26fd5699b7f2a1e0acb1cd6b30d8f4 (patch) | |
tree | 4e59c477134e7484211c80845ef809eeaca5466d /sys | |
parent | 32d7a664c3ad02eff593170ede8f0a36d0b60302 (diff) | |
download | FreeBSD-src-4ada2ddb7d26fd5699b7f2a1e0acb1cd6b30d8f4.zip FreeBSD-src-4ada2ddb7d26fd5699b7f2a1e0acb1cd6b30d8f4.tar.gz |
Add support for the IFF_MULTICAST flag. There's not
much to do because we are a point-to-point interface.
Submitted by: phk
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index ee985b5..751f09d 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -331,6 +331,8 @@ ng_iface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) /* Stuff that's not supported */ case SIOCADDMULTI: case SIOCDELMULTI: + error = 0; + break; case SIOCSIFPHYS: error = EOPNOTSUPP; break; @@ -512,7 +514,7 @@ ng_iface_constructor(node_p *nodep) ifp->if_watchdog = NULL; ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; ifp->if_mtu = NG_IFACE_MTU_DEFAULT; - ifp->if_flags = (IFF_SIMPLEX | IFF_POINTOPOINT | IFF_NOARP); + ifp->if_flags = (IFF_SIMPLEX | IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST); ifp->if_type = IFT_PROPVIRTUAL; /* XXX */ ifp->if_addrlen = 0; /* XXX */ ifp->if_hdrlen = 0; /* XXX */ |