ia64/xen-unstable

view extras/mini-os/include/netfront.h @ 19836:d9890e67d2b7

tools: add SHAREDIR to buildmakevars2file

c/s 19818 dropped SHAREDIR from xen/util/path.py, which broke the "xm
new" command. This patch adds SHAREDIR back to the new
buildmakevars2file-closure function.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:05:10 2009 +0100 (2009-06-25)
parents 707e10c9a487
children
line source
1 #include <mini-os/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], char **ip);
7 void netfront_xmit(struct netfront_dev *dev, unsigned char* data,int len);
8 void shutdown_netfront(struct netfront_dev *dev);
9 #ifdef HAVE_LIBC
10 int netfront_tap_open(char *nodename);
11 ssize_t netfront_receive(struct netfront_dev *dev, unsigned char *data, size_t len);
12 #endif
14 extern struct wait_queue_head netfront_queue;
16 #ifdef HAVE_LWIP
17 /* Call this to bring up the netfront interface and the lwIP stack.
18 * N.B. _must_ be called from a thread; it's not safe to call this from
19 * app_main(). */
20 void start_networking(void);
21 void stop_networking(void);
23 void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw);
24 #endif