Skip to content

Commit 90b2ec0

Browse files
committed
applications: serial_lte_modem: sockopt SO_IPV6_DELAYED_ADDR_REFRESH
Add new socket option SO_IPV6_DELAYED_ADDR_REFRESH for delaying IPv6 address refresh when using IPv6. Signed-off-by: Andreas Moltumyr <[email protected]>
1 parent 238f142 commit 90b2ec0

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

applications/serial_lte_modem/doc/SOCKET_AT_commands.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ Syntax
571571
Indicates that the socket is in active use by a server application.
572572
This lets the modem stay in connected mode longer.
573573

574+
* ``62`` - :c:macro:`SO_IPV6_DELAYED_ADDR_REFRESH`.
575+
576+
* ``<value>`` is an integer that indicates whether delayed IPv6 address refresh is enabled.
577+
It is ``0`` for disabled or ``1`` for enabled.
574578

575579
See :ref:`nRF socket options <nrfxlib:nrf_sockets>` for explanation of the supported options.
576580

applications/serial_lte_modem/src/slm_at_socket.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ static int at_sockopt_to_sockopt(enum at_sockopt at_option, int *level, int *opt
346346
*level = IPPROTO_IPV6;
347347
*option = SO_IPV6_ECHO_REPLY;
348348
break;
349+
case AT_SO_IPV6_DELAYED_ADDR_REFRESH:
350+
*level = IPPROTO_IPV6;
351+
*option = SO_IPV6_DELAYED_ADDR_REFRESH;
349352
case AT_SO_BINDTOPDN:
350353
*level = SOL_SOCKET;
351354
*option = SO_BINDTOPDN;

applications/serial_lte_modem/src/slm_sockopt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ enum at_sockopt {
2626
AT_SO_BINDTOPDN = 40,
2727
AT_SO_TCP_SRV_SESSTIMEO = 55,
2828
AT_SO_RAI = 61,
29+
AT_SO_IPV6_DELAYED_ADDR_REFRESH = 62,
2930
};
3031

3132
/**

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ Serial LTE modem
314314
* DTLS support for the ``#XUDPSVR`` and ``#XSSOCKET`` (UDP server sockets) AT commands when the :file:`overlay-native_tls.conf` configuration file is used.
315315
* The :kconfig:option:`CONFIG_SLM_PPP_FALLBACK_MTU` Kconfig option that is used to control the MTU used by PPP when the cellular link MTU is not returned by the modem in response to the ``AT+CGCONTRDP=0`` AT command.
316316
* Handler for new nRF Cloud event type ``NRF_CLOUD_EVT_RX_DATA_DISCON``.
317+
* Support for socket option ``AT_SO_IPV6_DELAYED_ADDR_REFRESH``.
317318

318319
* Removed:
319320

0 commit comments

Comments
 (0)