This commit adopts the glue code to work with the Unikraft updates
introduced with [PR #1148](https://github.com/unikraft/unikraft/pull/1148).
Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #40
/*
* This function initializing the lwip network stack
*/
-static int liblwip_init(void)
+static int liblwip_init(struct uk_init_ctx *ictx __unused)
{
#if CONFIG_LWIP_UKNETDEV && CONFIG_LWIP_AUTOIFACE
unsigned int devid;
#endif /* CONFIG_LWIP_UKNETDEV && CONFIG_LWIP_AUTOIFACE */
return 0;
}
-uk_lib_initcall(liblwip_init);
+
+static void liblwip_term(const struct uk_term_ctx *tctx __unused)
+{
+ /* nothing to do */
+}
+
+uk_lib_initcall(liblwip_init, liblwip_term);