Hi lwIP,
According to a message from a long time ago [1], there's no way to perform a graceful shutdown of an lwIP instance. Is that still true?
For context, I'm currently working with an executable that, on startup, calls lwip_init(), netif_set_up(), netif_set_link_up(), netif_set_default(), tcp_bind_to_netif(), tcp_bind_netif(), tcp_listen(), and tcp_accept(). On completion, the process terminates without unwinding any of these steps. I'm trying to convert this executable into a library that could be started, stopped, and started again.
Is there a recommended pattern for stopping and restarting lwIP?
Thanks,
Ben Schwartz