You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Use CompileTimeAssert
Describe alternatives you've considered
What if sizeof(struct sockaddr_in6) is > OS_SOCKADDR_MAX_LEN but only AF_INET is used? Not really an error? Maybe only really known if OS_NETWORK_SUPPORTS_IPV6 is not defined?
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review
The text was updated successfully, but these errors were encountered:
OSAL provides an abstract buffer for socket addresses, independent
of the underlying implementation. The size of this buffer is
configurable by the user via compile-time options.
This adds a CompileTimeAssert to confirm that the size of this
abstract buffer is large enough to store any of the enabled
address types. This also removes the need for runtime tests.
Is your feature request related to a problem? Please describe.
Known at compile time:
osal/src/os/portable/os-impl-bsd-sockets.c
Line 203 in ead5723
Describe the solution you'd like
Use CompileTimeAssert
Describe alternatives you've considered
What if sizeof(struct sockaddr_in6) is > OS_SOCKADDR_MAX_LEN but only AF_INET is used? Not really an error? Maybe only really known if OS_NETWORK_SUPPORTS_IPV6 is not defined?
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review
The text was updated successfully, but these errors were encountered: