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>
|
||
|---|---|---|
| .. | ||
| inet.h | ||
| inet_globals.c | ||
| inet_sockif.c | ||
| inet_txdrain.c | ||
| ipv4_build_header.c | ||
| ipv4_getpeername.c | ||
| ipv4_getsockname.c | ||
| ipv4_getsockopt.c | ||
| ipv4_setsockopt.c | ||
| ipv6_build_header.c | ||
| ipv6_getpeername.c | ||
| ipv6_getsockname.c | ||
| ipv6_setsockopt.c | ||
| Kconfig | ||
| Make.defs | ||