aboutsummaryrefslogtreecommitdiff
path: root/lwip/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'lwip/options.c')
-rw-r--r--lwip/options.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lwip/options.c b/lwip/options.c
index d35b9f32..2cfad44d 100644
--- a/lwip/options.c
+++ b/lwip/options.c
@@ -264,11 +264,15 @@ parse_opt (int opt, char *arg, struct argp_state *state)
case ARGP_KEY_SUCCESS:
/* If the interface list is not empty, a previous configuration exists */
if (netif_list == 0)
- /* Inititalize LwIP */
- tcpip_init (init_ifs, h);
+ {
+ /* Inititalize LwIP */
+ tcpip_init (init_ifs, h);
+ }
else
- /* No need to initialize the stack again */
- init_ifs (h);
+ {
+ /* No need to initialize the stack again */
+ tcpip_callback (init_ifs, h);
+ }
break;
case ARGP_KEY_ERROR: