nuttx/net/inet
梁超众 5e0af0ecfd add UDP compile option to avoid build error
The following build error happens when CONFIG_NET_IPv6 is enabled and CONFIG_NET_UDP is not enabled.

inet/ipv6_setsockopt.c:132:19: error: invalid use of undefined type 'struct udp_conn_s'
132 |               conn->flags |= _UDP_FLAG_PKTINFO;
|                   ^~
  inet/ipv6_setsockopt.c:132:30: error: '_UDP_FLAG_PKTINFO' undeclared (first use in this function)
    132 |               conn->flags |= _UDP_FLAG_PKTINFO;
        |                              ^~~~~~~~~~~~~~~~~
  inet/ipv6_setsockopt.c:132:30: note: each undeclared identifier is reported only once for each function it appears in
  inet/ipv6_setsockopt.c:136:19: error: invalid use of undefined type 'struct udp_conn_s'
    136 |               conn->flags &= ~_UDP_FLAG_PKTINFO;

Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-29 13:43:44 +08:00
..
inet_globals.c net: extract l3 header build code into new functions 2022-11-29 18:36:15 +08:00
inet_sockif.c net_socket: add accept4 function 2023-01-11 23:28:08 +08:00
inet_txdrain.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
inet.h net: Add set/getsockopt options compatible with iptables. 2022-12-28 22:40:53 +08:00
ipv4_build_header.c net: extract l3 header build code into new functions 2022-11-29 18:36:15 +08:00
ipv4_getpeername.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
ipv4_getsockname.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv4_getsockopt.c net: Add set/getsockopt options compatible with iptables. 2022-12-28 22:40:53 +08:00
ipv4_setsockopt.c net: Add set/getsockopt options compatible with iptables. 2022-12-28 22:40:53 +08:00
ipv6_build_header.c net: extract l3 header build code into new functions 2022-11-29 18:36:15 +08:00
ipv6_getpeername.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
ipv6_getsockname.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
ipv6_setsockopt.c add UDP compile option to avoid build error 2023-01-29 13:43:44 +08:00
Kconfig
Make.defs net: Add set/getsockopt options compatible with iptables. 2022-12-28 22:40:53 +08:00