svn commit: r255649 - stable/9/sys/netinet

Andrey V. Elsukov ae at FreeBSD.org
Tue Sep 17 18:47:31 UTC 2013


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);
 	}


More information about the svn-src-stable-9 mailing list