zyfeier opened a new pull request, #18386: URL: https://github.com/apache/nuttx/pull/18386
Some compilers like Tasking do not support anonymous unions/structs. Add explicit names to the anonymous union and struct members in snoop_packet_header_s and update all references accordingly. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Some compilers like Tasking do not support anonymous unions/structs (C11 feature). This patch adds explicit names (u1, u2) to the anonymous union and struct members in snoop_packet_header_s and updates all references in net_snoop.c accordingly. ## Impact - Improves compiler compatibility (Tasking toolchain) - No functional change, purely structural naming - No breaking changes ## Testing - Build test with sim:nsh configuration — builds cleanly - Verified the struct member access paths are correctly updated (header->u1.flags, header->u2.ts_usec, etc.) - No runtime behavior change, only struct member naming -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
