[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[5812]
From:       owes () users ! sourceforge ! net
Date:       2011-08-19 7:03:15
Message-ID: E1QuJ6p-0002Pu-HN () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 5812
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5812&view=rev
Author:   owes
Date:     2011-08-19 07:03:15 +0000 (Fri, 19 Aug 2011)

Log Message:
-----------
Remove unused variable. Slightly improve comment.

Modified Paths:
--------------
    ipcop/trunk/src/misc-progs/setaliases.c

Modified: ipcop/trunk/src/misc-progs/setaliases.c
===================================================================
--- ipcop/trunk/src/misc-progs/setaliases.c	2011-08-18 18:00:50 UTC (rev 5811)
+++ ipcop/trunk/src/misc-progs/setaliases.c	2011-08-19 07:03:15 UTC (rev 5812)
@@ -63,7 +63,6 @@
     char *netmask;
     char *enabled;
     char *comment;
-    int alias;
 
     static struct option long_options[] =
     {
@@ -101,7 +100,7 @@
 
     /* delete all aliases, readd the active ones below */
     memset(command, 0, STRING_SIZE);
-    verbose_printf(2, "Flushing aliases\n");
+    verbose_printf(1, "Flushing aliases\n");
     snprintf(command, STRING_SIZE - 1, "/sbin/ip addr flush label %s:alias", \
ipcop_ethernet.device[RED][1]);  safe_system(command);
 
@@ -112,8 +111,7 @@
         exit(0);
     }
 
-    /* Now check the RED_TYPE - aliases only work with STATIC.
-     * At least, that's what /etc/rc.d/rc.netaddress.up thinks.. */
+    /* Now check the RED_TYPE - aliases currently only set when RED is STATIC. */
     if (strcmp(ipcop_ethernet.red_type[1], "STATIC")) {
         verbose_printf(1, "RED is not STATIC. Exit.\n");
         exit(0);
@@ -125,7 +123,6 @@
         exit(1);
     }
 
-    alias = 0;
     int linecounter = 0;
     while (fgets(s, STRING_SIZE, file) != NULL) {
         linecounter++;
@@ -169,7 +166,6 @@
                  "/usr/sbin/arping -q -c 1 -w 1 -i %s -S %s %s",
                  ipcop_ethernet.device[RED][1], aliasip, \
ipcop_ethernet.default_gateway);  safe_system(command);
-        alias++;
     }
     return 0;
 }


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic