enable virtual IP device
This commit is contained in:
parent
9aa37f217d
commit
e7fa5f90e5
1 changed files with 1 additions and 3 deletions
|
@ -103,7 +103,6 @@ static int init_netifs(void)
|
||||||
netifapi_netif_set_default(&default_netif);
|
netifapi_netif_set_default(&default_netif);
|
||||||
netifapi_netif_set_up(&default_netif);
|
netifapi_netif_set_up(&default_netif);
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Bring up the intra network interface */
|
/* Bring up the intra network interface */
|
||||||
struct ip_addr intra_ipaddr;
|
struct ip_addr intra_ipaddr;
|
||||||
struct ip_addr intra_netmask;
|
struct ip_addr intra_netmask;
|
||||||
|
@ -129,7 +128,6 @@ static int init_netifs(void)
|
||||||
|
|
||||||
/* tell lwip all initialization is done and we want to set it ab */
|
/* tell lwip all initialization is done and we want to set it ab */
|
||||||
netifapi_netif_set_up(&mmnif_netif);
|
netifapi_netif_set_up(&mmnif_netif);
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
/* Clear network address because we use DHCP to get an ip address */
|
/* Clear network address because we use DHCP to get an ip address */
|
||||||
IP4_ADDR(&gw, 0,0,0,0);
|
IP4_ADDR(&gw, 0,0,0,0);
|
||||||
|
@ -176,7 +174,7 @@ static void tcpip_init_done(void* arg)
|
||||||
static int network_shutdown(void)
|
static int network_shutdown(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_LWIP) && defined(CONFIG_ROCKCREEK)
|
#if defined(CONFIG_LWIP) && defined(CONFIG_ROCKCREEK)
|
||||||
//mmnif_shutdown();
|
mmnif_shutdown();
|
||||||
netifapi_netif_set_down(&default_netif);
|
netifapi_netif_set_down(&default_netif);
|
||||||
#elif defined(CONFIG_LWIP) && defined(CONFIG_PCI)
|
#elif defined(CONFIG_LWIP) && defined(CONFIG_PCI)
|
||||||
netifapi_dhcp_stop(&default_netif);
|
netifapi_dhcp_stop(&default_netif);
|
||||||
|
|
Loading…
Add table
Reference in a new issue