summaryrefslogtreecommitdiff
path: root/nuttx/net/udp
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-23 16:40:18 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-23 16:40:18 -0600
commitc6f348acc5e6108896d6cfbc4565dd09418ba890 (patch)
treeed986bf560e20068706fa9c722afd6949bcd3d20 /nuttx/net/udp
parent9b0a2b82889066203257626cab8df0dfbe0af990 (diff)
downloadpx4-nuttx-c6f348acc5e6108896d6cfbc4565dd09418ba890.tar.gz
px4-nuttx-c6f348acc5e6108896d6cfbc4565dd09418ba890.tar.bz2
px4-nuttx-c6f348acc5e6108896d6cfbc4565dd09418ba890.zip
Networking: IPv4 and IPv6 work together. This fixes a bug necessary to accomplish that as well as cleaning up a couple of other issues
Diffstat (limited to 'nuttx/net/udp')
-rw-r--r--nuttx/net/udp/udp_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/udp/udp_send.c b/nuttx/net/udp/udp_send.c
index 27d5ff1c9..b6ef3bd76 100644
--- a/nuttx/net/udp/udp_send.c
+++ b/nuttx/net/udp/udp_send.c
@@ -212,8 +212,8 @@ void udp_send(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn)
/* Calculate UDP checksum. */
#ifdef CONFIG_NET_IPv4
-#ifdef CONFIG_NET_IPv5
- if (conn->domain = PF_INET)
+#ifdef CONFIG_NET_IPv6
+ if (conn->domain == PF_INET)
#endif
{
udp->udpchksum = ~udp_ipv4_chksum(dev);