diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-15 15:06:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-15 15:06:46 -0600 |
commit | 079bdbfc29756407b681107b83dc2a7aa122de86 (patch) | |
tree | f4a290f1a94786c799f0830bda6b80bd2f8b2ab2 /nuttx/net/devif/ipv4_input.c | |
parent | fe80c662f25081c8d2c9df8797af2dc89ead2f64 (diff) | |
download | px4-nuttx-079bdbfc29756407b681107b83dc2a7aa122de86.tar.gz px4-nuttx-079bdbfc29756407b681107b83dc2a7aa122de86.tar.bz2 px4-nuttx-079bdbfc29756407b681107b83dc2a7aa122de86.zip |
Networking: Seperate tcp_input() and udp_input() into seprate functions tcp_ipv4_input(), tcp_ipv6_input(), udp_ipv4_input(), and upd_ipv6_input() than can deal will the data offsets caused by the differing sizes of the IP header.
Diffstat (limited to 'nuttx/net/devif/ipv4_input.c')
-rw-r--r-- | nuttx/net/devif/ipv4_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/devif/ipv4_input.c b/nuttx/net/devif/ipv4_input.c index e7895d003..f10cfc68a 100644 --- a/nuttx/net/devif/ipv4_input.c +++ b/nuttx/net/devif/ipv4_input.c @@ -383,7 +383,7 @@ int ipv4_input(FAR struct net_driver_s *dev) if (pbuf->proto == IP_PROTO_UDP && net_ipv4addr_cmp(net_ip4addr_conv32(pbuf->destipaddr), g_alloneaddr)) { - return udp_input(dev); + return udp_ipv4_input(dev); } /* In most other cases, the device must be assigned a non-zero IP @@ -457,13 +457,13 @@ int ipv4_input(FAR struct net_driver_s *dev) { #ifdef CONFIG_NET_TCP case IP_PROTO_TCP: /* TCP input */ - tcp_input(dev); + tcp_ipv4_input(dev); break; #endif #ifdef CONFIG_NET_UDP case IP_PROTO_UDP: /* UDP input */ - udp_input(dev); + udp_ipv4_input(dev); break; #endif |