view extras/mini-os/include/netfront.h @ 16838:945820bfedb6

minios: POSIX fixes
Fixes some functions which are POSIX. Also make them ifndef HAVE_LIBC.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 22 14:20:22 2008 +0000 (2008-01-22)
parents 3c49ae5641b0
children a905c582a406
line source
1 #include <wait.h>
2 #ifdef HAVE_LWIP
3 #include <lwip/netif.h>
4 #endif
5 struct netfront_dev;
6 struct netfront_dev *init_netfront(char *nodename, void (*netif_rx)(unsigned char *data, int len), unsigned char rawmac[6]);
7 void netfront_xmit(struct netfront_dev *dev, unsigned char* data,int len);
8 void shutdown_netfront(struct netfront_dev *dev);
10 extern struct wait_queue_head netfront_queue;
12 #ifdef HAVE_LWIP
13 /* Call this to bring up the netfront interface and the lwIP stack.
14 * N.B. _must_ be called from a thread; it's not safe to call this from
15 * app_main(). */
16 void start_networking(void);
18 void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw);
19 #endif