mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
- Rename devif_input() ipv4_input()
- Copy net/devif/devif_input.c to ipv6_input.c. Remove all IPv4-specific logic. - Rename net/devif/devif_input.c to ipv4_input.c. Remove all IPv6-specific logic - Split IPv4 header structure out as net_ipv4hdr_s from net_iphdr_s
This commit is contained in:
@@ -1239,7 +1239,7 @@ static void c5471_receive(struct c5471_driver_s *c5471)
|
||||
#endif
|
||||
{
|
||||
arp_ipin(dev);
|
||||
devif_input(dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -523,7 +523,7 @@ static void kinetis_receive(FAR struct kinetis_driver_s *priv)
|
||||
#endif
|
||||
{
|
||||
arp_ipin(&priv->dev);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -879,7 +879,7 @@ static void lpc17_rxdone(struct lpc17_driver_s *priv)
|
||||
|
||||
EMAC_STAT(priv, rx_ip);
|
||||
arp_ipin(&priv->lp_dev);
|
||||
devif_input(&priv->lp_dev);
|
||||
ipv4_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
|
||||
|
||||
@@ -1151,7 +1151,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);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1191,7 +1191,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);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1517,7 +1517,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);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1121,7 +1121,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);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1627,7 +1627,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);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -773,7 +773,7 @@ static void tiva_receive(struct tiva_driver_s *priv)
|
||||
EMAC_STAT(priv, rx_ip);
|
||||
|
||||
arp_ipin(&priv->ld_dev);
|
||||
devif_input(&priv->ld_dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1694,7 +1694,7 @@ static void tiva_receive(FAR struct tiva_ethmac_s *priv)
|
||||
/* Handle ARP on input then give the IP packet to uIP */
|
||||
|
||||
arp_ipin(&priv->dev);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -265,7 +265,7 @@ static void emac_receive(FAR struct emac_driver_s *priv)
|
||||
#endif
|
||||
{
|
||||
arp_ipin(&priv->d_dev);
|
||||
devif_input(&priv->d_dev);
|
||||
ipv4_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.
|
||||
|
||||
@@ -1436,7 +1436,7 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
|
||||
|
||||
EMAC_STAT(priv, rx_ip);
|
||||
arp_ipin(&priv->pd_dev);
|
||||
devif_input(&priv->pd_dev);
|
||||
ipv4_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
|
||||
|
||||
@@ -166,7 +166,7 @@ void netdriver_loop(void)
|
||||
#endif
|
||||
{
|
||||
arp_ipin(&g_sim_dev);
|
||||
devif_input(&g_sim_dev);
|
||||
ipv4_input(&g_sim_dev);
|
||||
|
||||
/* If the above function invocation resulted in data that
|
||||
* should be sent out on the network, the global variable
|
||||
|
||||
@@ -1275,7 +1275,7 @@ static int ez80emac_receive(struct ez80emac_driver_s *priv)
|
||||
EMAC_STAT(priv, rx_ip);
|
||||
|
||||
arp_ipin(&priv->dev);
|
||||
devif_input(&priv->dev);
|
||||
ipv4_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.
|
||||
|
||||
Reference in New Issue
Block a user