diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-21 11:20:52 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-21 11:20:52 +0000 |
commit | 0464a12749f9b868bd681cbd93c3b3227e23ea8a (patch) | |
tree | 21a66419dd63914f00f0ea5eaab8c4a168657be1 /extras/mini-os/include/netfront.h | |
parent | afb13d4890c7b505865b8264247c2049fd0c2227 (diff) | |
download | xen-0464a12749f9b868bd681cbd93c3b3227e23ea8a.tar.gz xen-0464a12749f9b868bd681cbd93c3b3227e23ea8a.tar.bz2 xen-0464a12749f9b868bd681cbd93c3b3227e23ea8a.zip |
minios: add lwIP 1.3.0 support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include/netfront.h')
-rw-r--r-- | extras/mini-os/include/netfront.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/mini-os/include/netfront.h b/extras/mini-os/include/netfront.h index 143a398782..5c8ec9c4fa 100644 --- a/extras/mini-os/include/netfront.h +++ b/extras/mini-os/include/netfront.h @@ -1,7 +1,19 @@ #include <wait.h> +#ifdef HAVE_LWIP +#include <lwip/netif.h> +#endif struct netfront_dev; struct netfront_dev *init_netfront(char *nodename, void (*netif_rx)(unsigned char *data, int len), unsigned char rawmac[6]); void netfront_xmit(struct netfront_dev *dev, unsigned char* data,int len); void shutdown_netfront(struct netfront_dev *dev); extern struct wait_queue_head netfront_queue; + +#ifdef HAVE_LWIP +/* Call this to bring up the netfront interface and the lwIP stack. + * N.B. _must_ be called from a thread; it's not safe to call this from + * app_main(). */ +void start_networking(void); + +void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw); +#endif |