* Different ifconfig command under fbsd.
This commit is contained in:
parent
8aa34f1ea4
commit
95ea7bdff1
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* This file is part of the uIP TCP/IP stack.
|
||||||
*
|
*
|
||||||
* $Id: tunslip.c,v 1.10 2007/02/02 13:26:49 bg- Exp $
|
* $Id: tunslip.c,v 1.11 2007/04/04 11:54:45 bg- Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -842,7 +842,7 @@ ifconf(const char *tundev, const char *ipaddr, const char *netmask)
|
||||||
#ifdef mac_something
|
#ifdef mac_something
|
||||||
ssystem("ifconfig %s inet `hostname` %s up", tundev, ipaddr);
|
ssystem("ifconfig %s inet `hostname` %s up", tundev, ipaddr);
|
||||||
#else
|
#else
|
||||||
ssystem("ifconfig %s inet up", tundev);
|
ssystem("ifconfig %s inet `hostname` %s up", tundev, ipaddr);
|
||||||
#endif
|
#endif
|
||||||
if (strcmp(ipaddr, "0.0.0.0") != 0)
|
if (strcmp(ipaddr, "0.0.0.0") != 0)
|
||||||
ssystem("route add -net %s -netmask %s -interface %s",
|
ssystem("route add -net %s -netmask %s -interface %s",
|
||||||
|
|
Loading…
Reference in a new issue