IP Management#
Functions#
Configure IP address of given interface.
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.
[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:
sl_net_up should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.
Note
This API doesn't support async mode operation, so passing 0 in timeout parameter leads to an error.
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.
[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:
sl_net_up should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.
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.
210
of file components/service/network_manager/inc/sl_net.h