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;