Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leftover socket options #2504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MirkoCovizzi
Copy link
Contributor

@MirkoCovizzi MirkoCovizzi commented Feb 17, 2025

  • Removes leftover socket options TLS_SESSION_CACHE_DISABLED
    and TLS_SESSION_CACHE_ENABLED. These exist already
    in socket.h.

  • Adds a base value for NCS specific socket options to
    prevent overlaps with Zephyr's socket options.

Copy link
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

Please nrf-squash! line to the commits, so we can do a cleanup on the next rebase:
nrf-squash! [nrf noup] include: net: add NCS extensions

@MirkoCovizzi MirkoCovizzi force-pushed the remove-leftover-socket-options branch 2 times, most recently from da70969 to 99c1bcd Compare February 17, 2025 12:16
@MirkoCovizzi MirkoCovizzi removed the DNM label Feb 17, 2025
@MirkoCovizzi MirkoCovizzi force-pushed the remove-leftover-socket-options branch from 99c1bcd to 1fbfbc6 Compare February 17, 2025 13:44
@MirkoCovizzi MirkoCovizzi force-pushed the remove-leftover-socket-options branch 4 times, most recently from c1a4e5b to 72ab7b6 Compare February 20, 2025 08:27
/* NCS specific TLS level socket options */

/** Socket option to set DTLS handshake timeout, specifically for nRF sockets.
* The option accepts an integer, indicating the total handshake timeout,
* including retransmissions, in seconds.
* Accepted values for the option are: 1, 3, 7, 15, 31, 63, 123.
*/
#define TLS_DTLS_HANDSHAKE_TIMEO 18
#define TLS_DTLS_HANDSHAKE_TIMEO (NET_SOCKET_NCS_BASE + 18)
Copy link
Contributor

Choose a reason for hiding this comment

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

side note, did we not have a SO_ prefix or similar for these?

@MirkoCovizzi MirkoCovizzi force-pushed the remove-leftover-socket-options branch from 72ab7b6 to 240cfe2 Compare February 20, 2025 11:16
nrf-squash! [nrf noup] include: net: add NCS extensions

Removes leftover socket options `TLS_SESSION_CACHE_DISABLED`
and `TLS_SESSION_CACHE_ENABLED`. These exist already
in `socket.h`.

Signed-off-by: Mirko Covizzi <[email protected]>
nrf-squash! [nrf noup] include: net: add NCS extensions

Adds a base value for NCS specific socket options to
prevent overlaps with Zephyr's socket options.

Signed-off-by: Mirko Covizzi <[email protected]>
@MirkoCovizzi MirkoCovizzi force-pushed the remove-leftover-socket-options branch from 240cfe2 to 7b749f0 Compare February 20, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants