add additional output messages
This commit is contained in:
parent
2605ce5b34
commit
df40d33913
1 changed files with 3 additions and 2 deletions
|
@ -261,6 +261,7 @@ again:
|
|||
static void rckemacif_input(struct netif* netif, struct pbuf* p)
|
||||
{
|
||||
struct eth_hdr *ethhdr;
|
||||
err_t err;
|
||||
|
||||
/* points to packet payload, which starts with an Ethernet header */
|
||||
ethhdr = p->payload;
|
||||
|
@ -275,8 +276,8 @@ static void rckemacif_input(struct netif* netif, struct pbuf* p)
|
|||
case ETHTYPE_PPPOE:
|
||||
#endif /* PPPOE_SUPPORT */
|
||||
/* full packet send to tcpip_thread to process */
|
||||
if (mynetif->input(p, mynetif) != ERR_OK) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("rckemacif_input: IP input error\n"));
|
||||
if ((err = mynetif->input(p, mynetif)) != ERR_OK) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("rckemacif_input: IP input error %u\n", err));
|
||||
pbuf_free(p);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue