gateway: use tnl_(4|6) tunnel names instead of tnl(4|6)_
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 9 Jan 2013 14:27:37 +0000 (15:27 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 9 Jan 2013 14:27:55 +0000 (15:27 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 058794a..2dd3ba8 100644 (file)
@@ -492,12 +492,12 @@ int olsr_init_gateways(void) {
       struct interfaceName * ifn = &sgwTunnel4InterfaceNames[i];
       ifn->gw = NULL;
       ifn->mark = i + olsr_cnf->smart_gw_mark_offset_tunnels;
-      snprintf(&ifn->name[0], sizeof(ifn->name), "tnl4_%03u", ifn->mark);
+      snprintf(&ifn->name[0], sizeof(ifn->name), "tnl_4%03u", ifn->mark);
 
       ifn = &sgwTunnel6InterfaceNames[i];
       ifn->gw = NULL;
       ifn->mark = i + olsr_cnf->smart_gw_mark_offset_tunnels;
-      snprintf(&ifn->name[0], sizeof(ifn->name), "tnl6_%03u", ifn->mark);
+      snprintf(&ifn->name[0], sizeof(ifn->name), "tnl_6%03u", ifn->mark);
     }
   }