ia64/xen-unstable

view extras/mini-os/include/netfront.h @ 17275:7fc9767f966a

minios: Automatically set IP from XenStore information

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 19 16:20:14 2008 +0000 (2008-03-19)
parents a905c582a406
children 2197a263a300
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], 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);
22 void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw);
23 #endif