IP Management#

Functions#

sl_status_t
sl_net_configure_ip(sl_net_interface_t interface, const sl_net_ip_configuration_t *ip_config, uint32_t timeout)

Configure IP address of given interface.

sl_status_t
sl_net_get_ip_address(sl_net_interface_t interface, sl_net_ip_address_t *ip_address, uint32_t timeout)

This function retrieves the IP address of the specified network interface.

Function Documentation#

sl_net_configure_ip#

sl_status_t sl_net_configure_ip (sl_net_interface_t interface, const sl_net_ip_configuration_t * ip_config, uint32_t timeout)

Configure IP address of given interface.

Parameters
[in]interface

Interface identified by sl_net_interface_t

[in]ip_config

Multicast IP address of type sl_net_ip_configuration_t

[in]timeout

The maximum time to wait for the IP address Configuration, in milliseconds.

  • Pre-conditions:

Returns

Note

    • This API doesn't support async mode operation, so passing 0 in timeout parameter leads to an error.


Definition at line 188 of file components/service/network_manager/inc/sl_net.h

sl_net_get_ip_address#

sl_status_t sl_net_get_ip_address (sl_net_interface_t interface, sl_net_ip_address_t * ip_address, uint32_t timeout)

This function retrieves the IP address of the specified network interface.

Parameters
[in]interface

Interface identified by sl_net_interface_t

[in]ip_address

IP address of type sl_net_ip_address_t

[in]timeout

The maximum time to wait for the IP address retrieval, in milliseconds.

  • Pre-conditions:

Returns

Note

    • This API doesn't support async mode operation, so passing 0 in timeout parameter leads to an error.

    • If the interface is setup in SL_IP_MANAGEMENT_STATIC_IP mode, this API only returns its mode and doesn't return ip address.


Definition at line 210 of file components/service/network_manager/inc/sl_net.h