Rename uip_input to devif_input

This commit is contained in:
Gregory Nutt 2014-06-30 18:11:17 -06:00
parent 7dd04db1d2
commit da7379ed18
23 changed files with 28 additions and 28 deletions

View File

@ -1239,7 +1239,7 @@ static void c5471_receive(struct c5471_driver_s *c5471)
#endif
{
arp_ipin(dev);
uip_input(dev);
devif_input(dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -523,7 +523,7 @@ static void kinetis_receive(FAR struct kinetis_driver_s *priv)
#endif
{
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -868,7 +868,7 @@ static void lpc17_rxdone(struct lpc17_driver_s *priv)
EMAC_STAT(priv, rx_ip);
arp_ipin(&priv->lp_dev);
uip_input(&priv->lp_dev);
devif_input(&priv->lp_dev);
/* If the above function invocation resulted in data that
* should be sent out on the network, the field d_len will

View File

@ -1140,7 +1140,7 @@ static void sam_receive(struct sam_emac_s *priv)
/* Handle ARP on input then give the IP packet to uIP */
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1180,7 +1180,7 @@ static void sam_receive(struct sam_emac_s *priv)
/* Handle ARP on input then give the IP packet to uIP */
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1495,7 +1495,7 @@ static void sam_receive(struct sam_emac_s *priv)
/* Handle ARP on input then give the IP packet to uIP */
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1110,7 +1110,7 @@ static void sam_receive(struct sam_gmac_s *priv)
/* Handle ARP on input then give the IP packet to uIP */
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1623,7 +1623,7 @@ static void stm32_receive(FAR struct stm32_ethmac_s *priv)
/* Handle ARP on input then give the IP packet to uIP */
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -767,7 +767,7 @@ static void tiva_receive(struct tiva_driver_s *priv)
EMAC_STAT(priv, rx_ip);
arp_ipin(&priv->ld_dev);
uip_input(&priv->ld_dev);
devif_input(&priv->ld_dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -265,7 +265,7 @@ static void emac_receive(FAR struct emac_driver_s *priv)
#endif
{
arp_ipin(&priv->d_dev);
uip_input(&priv->d_dev);
devif_input(&priv->d_dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1436,7 +1436,7 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
EMAC_STAT(priv, rx_ip);
arp_ipin(&priv->pd_dev);
uip_input(&priv->pd_dev);
devif_input(&priv->pd_dev);
/* If the above function invocation resulted in data that
* should be sent out on the network, the field d_len will

View File

@ -167,7 +167,7 @@ void uipdriver_loop(void)
#endif
{
arp_ipin(&g_sim_dev);
uip_input(&g_sim_dev);
devif_input(&g_sim_dev);
/* If the above function invocation resulted in data that
* should be sent out on the network, the global variable

View File

@ -1275,7 +1275,7 @@ static int ez80emac_receive(struct ez80emac_driver_s *priv)
EMAC_STAT(priv, rx_ip);
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -439,7 +439,7 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq)
#endif
{
arp_ipin(&cs89x0->cs_dev);
uip_input(&cs89x0->cs_dev);
devif_input(&cs89x0->cs_dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -989,7 +989,7 @@ static void dm9x_receive(struct dm9x_driver_s *dm9x)
#endif
{
arp_ipin(&dm9x->dm_dev);
uip_input(&dm9x->dm_dev);
devif_input(&dm9x->dm_dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -574,7 +574,7 @@ static void e1000_receive(struct e1000_dev *e1000)
#endif
{
arp_ipin(&e1000->netdev);
uip_input(&e1000->netdev);
devif_input(&e1000->netdev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1379,7 +1379,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
{
nllvdbg("IP packet received (%02x)\n", BUF->type);
arp_ipin(&priv->dev);
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -1497,7 +1497,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
nllvdbg("Try to process IP packet (%02x)\n", BUF->type);
arp_ipin(&priv->dev);
ret = uip_input(&priv->dev);
ret = devif_input(&priv->dev);
if (ret == OK || (clock_systimer() - descr->ts) > ENC_RXTIMEOUT)
{

View File

@ -265,7 +265,7 @@ static void skel_receive(FAR struct skel_driver_s *skel)
#endif
{
arp_ipin(&skel->sk_dev);
uip_input(&skel->sk_dev);
devif_input(&skel->sk_dev);
/* If the above function invocation resulted in data that should be
* sent out on the network, the field d_len will set to a value > 0.

View File

@ -718,7 +718,7 @@ static int slip_rxtask(int argc, char *argv[])
priv->dev.d_len = priv->rxlen;
flags = net_lock();
uip_input(&priv->dev);
devif_input(&priv->dev);
/* If the above function invocation resulted in data that should
* be sent out on the network, the field d_len will set to a

View File

@ -294,7 +294,7 @@ void rtos_vnet_recv(struct rgmp_vnet *rgmp_vnet, char *data, int len)
#endif
{
arp_ipin(&vnet->sk_dev);
uip_input(&vnet->sk_dev);
devif_input(&vnet->sk_dev);
// If the above function invocation resulted in data that should be
// sent out on the network, the field d_len will set to a value > 0.

View File

@ -227,7 +227,7 @@ struct net_driver_s
* dev->d_len = devicedriver_poll();
* if (dev->d_len > 0)
* {
* uip_input(dev);
* devif_input(dev);
* if (dev->d_len > 0)
* {
* devicedriver_send();
@ -246,7 +246,7 @@ struct net_driver_s
* if (BUF->type == HTONS(UIP_ETHTYPE_IP))
* {
* arp_ipin();
* uip_input(dev);
* devif_input(dev);
* if (dev->d_len > 0)
* {
* arp_out();
@ -263,7 +263,7 @@ struct net_driver_s
* }
*/
int uip_input(struct net_driver_s *dev);
int devif_input(struct net_driver_s *dev);
/* Polling of connections
*

View File

@ -1,5 +1,5 @@
/****************************************************************************
* netuip/uip_input.c
* netuip/devif_input.c
* The uIP TCP/IP stack code.
*
* Copyright (C) 2007-2009, 2013-2014 Gregory Nutt. All rights reserved.
@ -51,7 +51,7 @@
* well as some basic ICMP stuff). The implementation couples the IP,
* UDP, TCP and the application layers very tightly. To keep the size
* of the compiled code down, this code frequently uses the goto
* statement. While it would be possible to break the uip_input()
* statement. While it would be possible to break the devif_input()
* function into many smaller functions, this would increase the code
* size because of the overhead of parameter passing and the fact that
* the optimizer would not be as efficient.
@ -293,7 +293,7 @@ nullreturn:
****************************************************************************/
/****************************************************************************
* Function: uip_input
* Function: devif_input
*
* Description:
*
@ -307,7 +307,7 @@ nullreturn:
*
****************************************************************************/
int uip_input(FAR struct net_driver_s *dev)
int devif_input(FAR struct net_driver_s *dev)
{
FAR struct net_iphdr_s *pbuf = BUF;
uint16_t iplen;