mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-24 04:29:07 +00:00
replaced inet6 with inet for linux to get tunbridge working.
This commit is contained in:
parent
1637a807e2
commit
ae3ff57c39
@ -125,13 +125,13 @@ void
|
|||||||
ifconf(const char *tundev, const char *ipaddr)
|
ifconf(const char *tundev, const char *ipaddr)
|
||||||
{
|
{
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
ssystem("ifconfig %s inet6 `hostname` up", tundev);
|
ssystem("ifconfig %s inet `hostname` up", tundev);
|
||||||
ssystem("ifconfig %s add %s", tundev, ipaddr);
|
ssystem("ifconfig %s add %s", tundev, ipaddr);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
ssystem("ifconfig %s inet6 %s up", tundev, ipaddr);
|
ssystem("ifconfig %s inet6 %s up", tundev, ipaddr);
|
||||||
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
||||||
#else
|
#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");
|
ssystem("sysctl -w net.inet.ip.forwarding=1");
|
||||||
#endif /* !linux */
|
#endif /* !linux */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user