[pisa-src] r1847 - trunk/pisasd/sdnat.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 27 Nov 2009 11:28:35 +0100

Author: biurrun
Date: Fri Nov 27 11:28:34 2009
New Revision: 1847

Log:
Fix typo in IPV4_FORWARD_FILENAME definition.

Modified:
   trunk/pisasd/sdnat.c

Modified: trunk/pisasd/sdnat.c
==============================================================================
--- trunk/pisasd/sdnat.c        Fri Nov 27 11:25:55 2009        (r1846)
+++ trunk/pisasd/sdnat.c        Fri Nov 27 11:28:34 2009        (r1847)
@@ -22,7 +22,7 @@
 /**
  * Path procfs IPv4 forwarding option.
  */
-#define IP4_FOWARD_FILENAME "/proc/sys/net/ipv4/ip_forward"
+#define IPV4_FORWARD_FILENAME "/proc/sys/net/ipv4/ip_forward"
 
 /**
  * Start IPv4 forwarding and remember if it needs to be switched off again
@@ -33,8 +33,8 @@
        char value = -1;
        int fd;
 
-       if ((fd = open(IP4_FOWARD_FILENAME, O_RDWR)) == -1) {
-               PISA_ERROR("Could not open %s\n", IP4_FOWARD_FILENAME);
+       if ((fd = open(IPV4_FORWARD_FILENAME, O_RDWR)) == -1) {
+               PISA_ERROR("Could not open %s\n", IPV4_FORWARD_FILENAME);
                return;
        }
 
@@ -60,8 +60,8 @@
        if (sd_ctx.disable_ip4_forward != 1)
                return;
 
-       if ((fd = open(IP4_FOWARD_FILENAME, O_WRONLY)) == -1) {
-               PISA_ERROR("Could not open %s\n", IP4_FOWARD_FILENAME);
+       if ((fd = open(IPV4_FORWARD_FILENAME, O_WRONLY)) == -1) {
+               PISA_ERROR("Could not open %s\n", IPV4_FORWARD_FILENAME);
                return;
        }
 

Other related posts:

  • » [pisa-src] r1847 - trunk/pisasd/sdnat.c - Diego Biurrun