From 57f7677128033580279b34d2afa7d5becd455a71 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 30 Mar 2018 15:30:45 -0600 Subject: [PATCH] net/udp: Fix another related error in UDP condition compilatino (was actually using TCP setting, not UDP setting). --- net/udp/udp_conn.c | 2 +- net/udp/udp_send.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/udp/udp_conn.c b/net/udp/udp_conn.c index 00bd63b92c..243d3afed3 100644 --- a/net/udp/udp_conn.c +++ b/net/udp/udp_conn.c @@ -486,7 +486,7 @@ FAR struct udp_conn_s *udp_alloc(uint8_t domain) conn->lport = 0; conn->ttl = IP_TTL; -#ifdef CONFIG_NET_TCP_WRITE_BUFFERS +#ifdef CONFIG_NET_UDP_WRITE_BUFFERS /* Initialize the write buffer lists */ sq_init(&conn->write_q); diff --git a/net/udp/udp_send.c b/net/udp/udp_send.c index 26943f2da3..0413f13b35 100644 --- a/net/udp/udp_send.c +++ b/net/udp/udp_send.c @@ -114,7 +114,7 @@ void udp_send(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn) ip6_is_ipv4addr((FAR struct in6_addr *)conn->u.ipv6.raddr))) #endif { - /* Get pointers to the IPv4 header and the offset TCP header */ + /* Get pointers to the IPv4 header and the offset UDP header */ FAR struct ipv4_hdr_s *ipv4 = IPv4BUF; @@ -176,7 +176,7 @@ void udp_send(FAR struct net_driver_s *dev, FAR struct udp_conn_s *conn) else #endif { - /* Get pointers to the IPv6 header and the offset TCP header */ + /* Get pointers to the IPv6 header and the offset UDP header */ FAR struct ipv6_hdr_s *ipv6 = IPv6BUF;