mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
net/udp: Fix another related error in UDP condition compilatino (was actually using TCP setting, not UDP setting).
This commit is contained in:
+1
-1
@@ -486,7 +486,7 @@ FAR struct udp_conn_s *udp_alloc(uint8_t domain)
|
|||||||
conn->lport = 0;
|
conn->lport = 0;
|
||||||
conn->ttl = IP_TTL;
|
conn->ttl = IP_TTL;
|
||||||
|
|
||||||
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
|
#ifdef CONFIG_NET_UDP_WRITE_BUFFERS
|
||||||
/* Initialize the write buffer lists */
|
/* Initialize the write buffer lists */
|
||||||
|
|
||||||
sq_init(&conn->write_q);
|
sq_init(&conn->write_q);
|
||||||
|
|||||||
+2
-2
@@ -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)))
|
ip6_is_ipv4addr((FAR struct in6_addr *)conn->u.ipv6.raddr)))
|
||||||
#endif
|
#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;
|
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
|
else
|
||||||
#endif
|
#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;
|
FAR struct ipv6_hdr_s *ipv6 = IPv6BUF;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user