From ae3ff57c39d6fe3dede212e9a2fa2428db27429c Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Fri, 9 Mar 2012 01:09:56 -0800 Subject: [PATCH] replaced inet6 with inet for linux to get tunbridge working. --- examples/ipv6/native-border-router/tun-bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipv6/native-border-router/tun-bridge.c b/examples/ipv6/native-border-router/tun-bridge.c index 54d16339c..970b4cc79 100644 --- a/examples/ipv6/native-border-router/tun-bridge.c +++ b/examples/ipv6/native-border-router/tun-bridge.c @@ -125,13 +125,13 @@ void ifconf(const char *tundev, const char *ipaddr) { #ifdef linux - ssystem("ifconfig %s inet6 `hostname` up", tundev); + ssystem("ifconfig %s inet `hostname` up", tundev); ssystem("ifconfig %s add %s", tundev, ipaddr); #elif defined(__APPLE__) ssystem("ifconfig %s inet6 %s up", tundev, ipaddr); ssystem("sysctl -w net.inet.ip.forwarding=1"); #else - ssystem("ifconfig %s inet6 `hostname` %s up", tundev, ipaddr); + ssystem("ifconfig %s inet `hostname` %s up", tundev, ipaddr); ssystem("sysctl -w net.inet.ip.forwarding=1"); #endif /* !linux */