Date: Tue, 17 Sep 2013 18:47:31 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r255649 - stable/9/sys/netinet Message-ID: <201309171847.r8HIlV5r018714@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Tue Sep 17 18:47:31 2013 New Revision: 255649 URL: http://svnweb.freebsd.org/changeset/base/255649 Log: MFC r255235: Remove unused code and sort variables declarations. PR: kern/181822 Modified: stable/9/sys/netinet/ip_mroute.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/netinet/ip_mroute.c ============================================================================== --- stable/9/sys/netinet/ip_mroute.c Tue Sep 17 18:46:10 2013 (r255648) +++ stable/9/sys/netinet/ip_mroute.c Tue Sep 17 18:47:31 2013 (r255649) @@ -703,10 +703,9 @@ ip_mrouter_init(struct socket *so, int v static int X_ip_mrouter_done(void) { - vifi_t vifi; - int i; struct ifnet *ifp; - struct ifreq ifr; + int i; + vifi_t vifi; MROUTER_LOCK(); @@ -731,11 +730,6 @@ X_ip_mrouter_done(void) for (vifi = 0; vifi < V_numvifs; vifi++) { if (!in_nullhost(V_viftable[vifi].v_lcl_addr) && !(V_viftable[vifi].v_flags & (VIFF_TUNNEL | VIFF_REGISTER))) { - struct sockaddr_in *so = (struct sockaddr_in *)&(ifr.ifr_addr); - - so->sin_len = sizeof(struct sockaddr_in); - so->sin_family = AF_INET; - so->sin_addr.s_addr = INADDR_ANY; ifp = V_viftable[vifi].v_ifp; if_allmulti(ifp, 0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309171847.r8HIlV5r018714>