Don't try to do anything with the `ifr' parameter for SIOCADDMULTI

and SIOCDELMULTI; it is guaranteed to be null in the new system.
This commit is contained in:
Garrett Wollman 1997-01-17 19:38:16 +00:00
parent eb6b45e544
commit c7e54a6a04
3 changed files with 0 additions and 43 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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;