uip_arp_ipin needs a struct uip_driver_s as an input
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3132 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2978ada510
commit
c4482055d2
@ -1253,7 +1253,7 @@ static void c5471_receive(struct c5471_driver_s *c5471)
|
|||||||
if (BUF->type == HTONS(UIP_ETHTYPE_IP))
|
if (BUF->type == HTONS(UIP_ETHTYPE_IP))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
uip_arp_ipin();
|
uip_arp_ipin(dev);
|
||||||
uip_input(dev);
|
uip_input(dev);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that should be
|
/* If the above function invocation resulted in data that should be
|
||||||
|
@ -759,7 +759,7 @@ static void lm3s_receive(struct lm3s_driver_s *priv)
|
|||||||
nllvdbg("IP packet received (%02x)\n", ETHBUF->type);
|
nllvdbg("IP packet received (%02x)\n", ETHBUF->type);
|
||||||
EMAC_STAT(priv, rx_ip);
|
EMAC_STAT(priv, rx_ip);
|
||||||
|
|
||||||
uip_arp_ipin();
|
uip_arp_ipin(&priv->ld_dev);
|
||||||
uip_input(&priv->ld_dev);
|
uip_input(&priv->ld_dev);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that should be
|
/* If the above function invocation resulted in data that should be
|
||||||
|
@ -974,7 +974,7 @@ static void lpc17_rxdone(struct lpc17_driver_s *priv)
|
|||||||
/* Handle the incoming Rx packet */
|
/* Handle the incoming Rx packet */
|
||||||
|
|
||||||
EMAC_STAT(priv, rx_ip);
|
EMAC_STAT(priv, rx_ip);
|
||||||
uip_arp_ipin();
|
uip_arp_ipin(&priv->lp_dev);
|
||||||
uip_input(&priv->lp_dev);
|
uip_input(&priv->lp_dev);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that
|
/* If the above function invocation resulted in data that
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* up_uipdriver.c
|
* up_uipdriver.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007, 2009-2010 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Based on code from uIP which also has a BSD-like license:
|
* Based on code from uIP which also has a BSD-like license:
|
||||||
@ -166,7 +166,7 @@ void uipdriver_loop(void)
|
|||||||
if (BUF->ether_type == htons(UIP_ETHTYPE_IP))
|
if (BUF->ether_type == htons(UIP_ETHTYPE_IP))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
uip_arp_ipin();
|
uip_arp_ipin(&g_sim_dev);
|
||||||
uip_input(&g_sim_dev);
|
uip_input(&g_sim_dev);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that
|
/* If the above function invocation resulted in data that
|
||||||
|
@ -1274,7 +1274,7 @@ static int ez80emac_receive(struct ez80emac_driver_s *priv)
|
|||||||
nvdbg("IP packet received (%02x)\n", ETHBUF->type);
|
nvdbg("IP packet received (%02x)\n", ETHBUF->type);
|
||||||
EMAC_STAT(priv, rx_ip);
|
EMAC_STAT(priv, rx_ip);
|
||||||
|
|
||||||
uip_arp_ipin();
|
uip_arp_ipin(&priv->dev);
|
||||||
uip_input(&priv->dev);
|
uip_input(&priv->dev);
|
||||||
|
|
||||||
/* If the above function invocation resulted in data that should be
|
/* If the above function invocation resulted in data that should be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user