ia64/xen-unstable

diff extras/mini-os/lwip-net.c @ 17972:433d1b26fd51

stubdom: use host's gcc

This makes stubdom use the host's gcc instead of downloading/compiling
binutils+gcc. That requires a bunch of changes and even uncovered a
few bugs, but saves a lot of time.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 04 17:47:11 2008 +0100 (2008-07-04)
parents 2197a263a300
children
line diff
     1.1 --- a/extras/mini-os/lwip-net.c	Fri Jul 04 16:27:44 2008 +0100
     1.2 +++ b/extras/mini-os/lwip-net.c	Fri Jul 04 17:47:11 2008 +0100
     1.3 @@ -93,6 +93,9 @@ static err_t netfront_output(struct neti
     1.4  static err_t
     1.5  low_level_output(struct netif *netif, struct pbuf *p)
     1.6  {
     1.7 +  if (!dev)
     1.8 +    return ERR_OK;
     1.9 +
    1.10  #ifdef ETH_PAD_SIZE
    1.11    pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
    1.12  #endif
    1.13 @@ -342,7 +345,7 @@ void start_networking(void)
    1.14    struct ip_addr ipaddr = { htonl(IF_IPADDR) };
    1.15    struct ip_addr netmask = { htonl(IF_NETMASK) };
    1.16    struct ip_addr gw = { 0 };
    1.17 -  char *ip;
    1.18 +  char *ip = NULL;
    1.19  
    1.20    tprintk("Waiting for network.\n");
    1.21  
    1.22 @@ -380,5 +383,6 @@ void start_networking(void)
    1.23  /* Shut down the network */
    1.24  void stop_networking(void)
    1.25  {
    1.26 -  shutdown_netfront(dev);
    1.27 +  if (dev)
    1.28 +    shutdown_netfront(dev);
    1.29  }