svn commit: r255471 - in head/sys: dev/iicbus dev/lmc dev/ppbus dev/usb/net net
Gleb Smirnoff
glebius at FreeBSD.org
Wed Sep 11 09:19:46 UTC 2013
Author: glebius
Date: Wed Sep 11 09:19:44 2013
New Revision: 255471
URL: http://svnweb.freebsd.org/changeset/base/255471
Log:
Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself is
extremely outdated, and I doubt that it was ever used for ifnet drivers.
It was used for AF_INET sockets in pre-FreeBSD time.
Approved by: re (hrs)
Sponsored by: Nginx, Inc.
Modified:
head/sys/dev/iicbus/if_ic.c
head/sys/dev/lmc/if_lmc.c
head/sys/dev/ppbus/if_plip.c
head/sys/dev/usb/net/if_usie.c
head/sys/dev/usb/net/uhso.c
head/sys/net/if_gif.c
head/sys/net/if_gre.c
head/sys/net/if_spppsubr.c
head/sys/net/if_tun.c
Modified: head/sys/dev/iicbus/if_ic.c
==============================================================================
--- head/sys/dev/iicbus/if_ic.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/dev/iicbus/if_ic.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -204,7 +204,6 @@ icioctl(struct ifnet *ifp, u_long cmd, c
switch (cmd) {
- case SIOCSIFDSTADDR:
case SIOCAIFADDR:
case SIOCSIFADDR:
if (ifa->ifa_addr->sa_family != AF_INET)
Modified: head/sys/dev/lmc/if_lmc.c
==============================================================================
--- head/sys/dev/lmc/if_lmc.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/dev/lmc/if_lmc.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -4480,7 +4480,6 @@ lmc_raw_ioctl(struct ifnet *ifp, u_long
# if (defined(__FreeBSD__) && defined(DEVICE_POLLING)) /* XXX necessary? */
case SIOCSIFCAP:
# endif
- case SIOCSIFDSTADDR:
case SIOCAIFADDR:
case SIOCSIFFLAGS:
#if 0
Modified: head/sys/dev/ppbus/if_plip.c
==============================================================================
--- head/sys/dev/ppbus/if_plip.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/dev/ppbus/if_plip.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -410,7 +410,6 @@ lpioctl(struct ifnet *ifp, u_long cmd, c
int error;
switch (cmd) {
- case SIOCSIFDSTADDR:
case SIOCAIFADDR:
case SIOCSIFADDR:
if (ifa->ifa_addr->sa_family != AF_INET)
Modified: head/sys/dev/usb/net/if_usie.c
==============================================================================
--- head/sys/dev/usb/net/if_usie.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/dev/usb/net/if_usie.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -1324,7 +1324,6 @@ usie_if_ioctl(struct ifnet *ifp, u_long
break;
case SIOCSIFADDR:
- case SIOCSIFDSTADDR:
break;
default:
Modified: head/sys/dev/usb/net/uhso.c
==============================================================================
--- head/sys/dev/usb/net/uhso.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/dev/usb/net/uhso.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -1854,7 +1854,6 @@ uhso_if_ioctl(struct ifnet *ifp, u_long
}
break;
case SIOCSIFADDR:
- case SIOCSIFDSTADDR:
case SIOCADDMULTI:
case SIOCDELMULTI:
break;
Modified: head/sys/net/if_gif.c
==============================================================================
--- head/sys/net/if_gif.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/net/if_gif.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -687,9 +687,6 @@ gif_ioctl(ifp, cmd, data)
ifp->if_flags |= IFF_UP;
break;
- case SIOCSIFDSTADDR:
- break;
-
case SIOCADDMULTI:
case SIOCDELMULTI:
break;
Modified: head/sys/net/if_gre.c
==============================================================================
--- head/sys/net/if_gre.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/net/if_gre.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -534,8 +534,6 @@ gre_ioctl(struct ifnet *ifp, u_long cmd,
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
break;
- case SIOCSIFDSTADDR:
- break;
case SIOCSIFFLAGS:
/*
* XXXRW: Isn't this priv_check() redundant to the ifnet
Modified: head/sys/net/if_spppsubr.c
==============================================================================
--- head/sys/net/if_spppsubr.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/net/if_spppsubr.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -1200,7 +1200,6 @@ sppp_ioctl(struct ifnet *ifp, IOCTL_CMD_
rv = 0;
switch (cmd) {
case SIOCAIFADDR:
- case SIOCSIFDSTADDR:
break;
case SIOCSIFADDR:
Modified: head/sys/net/if_tun.c
==============================================================================
--- head/sys/net/if_tun.c Wed Sep 11 07:24:46 2013 (r255470)
+++ head/sys/net/if_tun.c Wed Sep 11 09:19:44 2013 (r255471)
@@ -552,10 +552,6 @@ tunifioctl(struct ifnet *ifp, u_long cmd
tuninit(ifp);
TUNDEBUG(ifp, "address set\n");
break;
- case SIOCSIFDSTADDR:
- tuninit(ifp);
- TUNDEBUG(ifp, "destination address set\n");
- break;
case SIOCSIFMTU:
ifp->if_mtu = ifr->ifr_mtu;
TUNDEBUG(ifp, "mtu set\n");
More information about the svn-src-all
mailing list