]> xenbits.xensource.com Git - people/aperard/mini-os.git/commitdiff
Mini-OS: add EXPORT_SYMBOL() instances to lwip-*.c
authorJuergen Gross <jgross@suse.com>
Mon, 27 Nov 2023 10:25:13 +0000 (11:25 +0100)
committerJulien Grall <jgrall@amazon.com>
Mon, 4 Dec 2023 16:52:57 +0000 (16:52 +0000)
Add the needed instances of EXPORT_SYMBOL() to lwip-*.c.

Most added symbols are in LWIP, but we can't add the EXPORT_SYMBOL()
instances easily there.

Signed-off-by: Juergen Gross <jgross@suse.com>
lwip-arch.c
lwip-net.c

index 21e941e960e985a06e8a96a2456741ec364ede84..7907f44687bb56937409a62fbdbfb74502d63bbb 100644 (file)
@@ -12,7 +12,9 @@
 #include <console.h>
 #include <xmalloc.h>
 #include <lwip/sys.h>
+#include <lwip/inet.h>
 #include <stdarg.h>
+#include <mini-os/export.h>
 
 /* Is called to initialize the sys_arch layer */
 void sys_init(void)
@@ -293,3 +295,10 @@ void lwip_die(char *fmt, ...)
     printk("\n");
     BUG();
 }
+
+EXPORT_SYMBOL(htonl);
+EXPORT_SYMBOL(htons);
+EXPORT_SYMBOL(inet_aton);
+EXPORT_SYMBOL(inet_ntoa);
+EXPORT_SYMBOL(ntohl);
+EXPORT_SYMBOL(ntohs);
index 16950d322d66521dcc069cde2f33072f24a3e7b4..e71a11c7ea3130b5a58aacb3cd8befb41b0033ef 100644 (file)
@@ -250,7 +250,7 @@ void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct
   netif_set_netmask(the_interface, netmask);
   netif_set_gw(the_interface, gw);
 }
-
+EXPORT_SYMBOL(networking_set_addr);
 
 static void
 arp_timer(void *arg)