summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-01-17 19:38:16 +0000
committerwollman <wollman@FreeBSD.org>1997-01-17 19:38:16 +0000
commit4cd908d3870fbdf4cb28fc2e68386990259f4080 (patch)
tree4a778c46bbcd649126c406cf1bf17b9997013644
parent21d52ed98042196760548eb0603bfab0b94af17f (diff)
downloadFreeBSD-src-4cd908d3870fbdf4cb28fc2e68386990259f4080.zip
FreeBSD-src-4cd908d3870fbdf4cb28fc2e68386990259f4080.tar.gz
Don't try to do anything with the `ifr' parameter for SIOCADDMULTI
and SIOCDELMULTI; it is guaranteed to be null in the new system.
-rw-r--r--sys/net/if_ppp.c13
-rw-r--r--sys/net/if_sl.c15
-rw-r--r--sys/net/if_tun.c15
3 files changed, 0 insertions, 43 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index e99cb33..fe7ea4f 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -544,19 +544,6 @@ pppsioctl(ifp, cmd, data)
case SIOCADDMULTI:
case SIOCDELMULTI:
- switch(ifr->ifr_addr.sa_family) {
-#ifdef INET
- case AF_INET:
- break;
-#endif
-#ifdef IPX /* ??? IPX support multicast? */
- case AF_IPX:
- break;
-#endif
- default:
- error = EAFNOSUPPORT;
- break;
- }
break;
case SIOCGPPPSTATS:
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 761de93..8ffb418 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -958,21 +958,6 @@ slioctl(ifp, cmd, data)
case SIOCADDMULTI:
case SIOCDELMULTI:
- if (ifr == 0) {
- error = EAFNOSUPPORT; /* XXX */
- break;
- }
- switch (ifr->ifr_addr.sa_family) {
-
-#ifdef INET
- case AF_INET:
- break;
-#endif
-
- default:
- error = EAFNOSUPPORT;
- break;
- }
break;
case SIOCSIFMTU:
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index df84d53..985afc4 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -275,21 +275,6 @@ tunifioctl(ifp, cmd, data)
break;
case SIOCADDMULTI:
case SIOCDELMULTI:
- if (ifr == 0) {
- error = EAFNOSUPPORT; /* XXX */
- break;
- }
- switch (ifr->ifr_addr.sa_family) {
-
-#ifdef INET
- case AF_INET:
- break;
-#endif
-
- default:
- error = EAFNOSUPPORT;
- break;
- }
break;
OpenPOWER on IntegriCloud