net/udp: Fix another related error in UDP condition compilatino (was actually using TCP setting, not UDP setting).
This commit is contained in:
parent
2796b0245c
commit
57f7677128
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue