lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] cs8900 lwip 1.0.0 more specifically


From: Eric Shufro
Subject: [lwip-users] cs8900 lwip 1.0.0 more specifically
Date: Mon, 13 Sep 2004 15:51:53 -0400

In the cs8900 reference driver the below function exists. Notice that is
takes in a pbuf * p, and then tries to assign p to the result of
etharp_ouput(). However, etharp_output() returns an err_t which is an signed
char or something. 

This creates a compiler error.

Whats going on here?

thanks

--eric

err_t cs8900if_output(struct netif *netif, struct pbuf *p, struct ip_addr
*ipaddr)
{
  struct cs8900if *cs8900if = netif->state;
  err_t result;
  /* resolve the link destination hardware address */
  p = etharp_output(netif, ipaddr, p);
  /* network hardware address obtained? */
  if (p != NULL)
  {
    /* send out the packet */
    result = cs8900_output(netif, p);
    p = NULL;
  }
  /* { p == NULL } */
  else
  {
    /* we cannot tell if the packet was sent, the packet could have been
queued */
    /* on an ARP entry that was already pending. */
    return ERR_OK;
  }
  return result;
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]