- 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:
Gregory Nutt
2015-01-15 08:03:56 -06:00
parent 2f4aa0bde7
commit 89538ac4a2
27 changed files with 389 additions and 146 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ static void cs89x0_receive(struct cs89x0_driver_s *cs89x0, uint16_t isq)
#endif
{
arp_ipin(&cs89x0->cs_dev);
devif_input(&cs89x0->cs_dev);
ipv4_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.
+1 -1
View File
@@ -987,7 +987,7 @@ static void dm9x_receive(struct dm9x_driver_s *dm9x)
#endif
{
arp_ipin(&dm9x->dm_dev);
devif_input(&dm9x->dm_dev);
ipv4_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.
+1 -1
View File
@@ -574,7 +574,7 @@ static void e1000_receive(struct e1000_dev *e1000)
#endif
{
arp_ipin(&e1000->netdev);
devif_input(&e1000->netdev);
ipv4_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.
+1 -1
View File
@@ -1384,7 +1384,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
{
nllvdbg("IP packet received (%02x)\n", BUF->type);
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.
+1 -1
View File
@@ -1504,7 +1504,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 = devif_input(&priv->dev);
ret = ipv4_input(&priv->dev);
if (ret == OK || (clock_systimer() - descr->ts) > ENC_RXTIMEOUT)
{
+1 -1
View File
@@ -293,7 +293,7 @@ static void skel_receive(FAR struct skel_driver_s *skel)
#endif
{
arp_ipin(&skel->sk_dev);
devif_input(&skel->sk_dev);
ipv4_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.
+1 -1
View File
@@ -714,7 +714,7 @@ static int slip_rxtask(int argc, FAR char *argv[])
priv->dev.d_len = priv->rxlen;
flags = net_lock();
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
+1 -1
View File
@@ -310,7 +310,7 @@ void rtos_vnet_recv(struct rgmp_vnet *rgmp_vnet, char *data, int len)
#endif
{
arp_ipin(&vnet->sk_dev);
devif_input(&vnet->sk_dev);
ipv4_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.