Skip to content

Conversation

@HedongGao
Copy link
Contributor

Summary

When the CONFIG_NET_SOCKOPTS, CONFIG_NET_TIMESTAMP, and CONFIG_NET_UDP_NO_STACK configuration options are enabled and the CONFIG_NET_UDP configuration option is disabled, a compilation error is generated. Modifications have been made to address the aforementioned issues.

inet/inet_sockif.c:772:40: error: invalid use of undefined type ‘struct udp_conn_s’ 772 | *(FAR int *)value = (conn->timestamp != 0); | ^~ inet/inet_sockif.c: In function ‘inet_set_socketlevel_option’: inet/inet_sockif.c:1081:19: error: invalid use of undefined type ‘struct udp_conn_s’ 1081 | conn->timestamp = (*((FAR int *)value) != 0);

Impact

No modifications have been made to the functionality, so it will not affect the system.

Testing

As mentioned above, with the above configuration, modifying the code and recompiling, the problem will no longer recur.

fix compilation issues

Signed-off-by: gaohedong <[email protected]>
@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small labels Dec 26, 2025
bool "Socket packet socket support"
default n
select NETDEV_IFINDEX
select NET_READAHEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HedongGao shouldn't it be possible to use NET_PKT without NET_READAHEAD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants