Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2013 18:51:36 +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-8@freebsd.org
Subject:   svn commit: r255650 - stable/8/sys/netinet
Message-ID:  <201309171851.r8HIpaxH021893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue Sep 17 18:51:35 2013
New Revision: 255650
URL: http://svnweb.freebsd.org/changeset/base/255650

Log:
  MFC r255235:
    Remove unused code and sort variables declarations.
  
  PR:		kern/181822

Modified:
  stable/8/sys/netinet/ip_mroute.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/netinet/ip_mroute.c
==============================================================================
--- stable/8/sys/netinet/ip_mroute.c	Tue Sep 17 18:47:31 2013	(r255649)
+++ stable/8/sys/netinet/ip_mroute.c	Tue Sep 17 18:51:35 2013	(r255650)
@@ -705,10 +705,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();
 
@@ -733,11 +732,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?201309171851.r8HIpaxH021893>