From owner-svn-src-head@FreeBSD.ORG Wed Sep 11 09:19:46 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7454432D; Wed, 11 Sep 2013 09:19:46 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 612EE2F04; Wed, 11 Sep 2013 09:19:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8B9JkoP085424; Wed, 11 Sep 2013 09:19:46 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8B9Ji32085412; Wed, 11 Sep 2013 09:19:44 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201309110919.r8B9Ji32085412@svn.freebsd.org> From: Gleb Smirnoff Date: Wed, 11 Sep 2013 09:19:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255471 - in head/sys: dev/iicbus dev/lmc dev/ppbus dev/usb/net net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 09:19:46 -0000 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");