IP Addresses#

This section provides a reference to the IP Address module including functions, data types, and constants.

Modules#

sl_ipv4_address_t

sl_ipv6_address_t

sl_ip_address_t

Enumerations#

enum
SL_IPV4_VERSION = 4
SL_IPV6_VERSION = 6
}

Enumeration of IP version.

enum
SL_IPV4 = (1 << 2)
SL_IPV6 = (1 << 3)
SL_IPV6_LINK_LOCAL = SL_IPV6 + 1
SL_IPV6_SITE_LOCAL = SL_IPV6 + 2
SL_IPV6_GLOBAL = SL_IPV6 + 3
SL_INVALID_IP = 0
}

Enumeration of IP address type.

enum
SL_IP_MANAGEMENT_STATIC_IP = 1
SL_IP_MANAGEMENT_DHCP
SL_IP_MANAGEMENT_LINK_LOCAL
}

Enumeration of IP Management type.

Enumeration Documentation#

sl_ip_version_t#

sl_ip_version_t

Enumeration of IP version.

Enumerator
SL_IPV4_VERSION
SL_IPV6_VERSION

Definition at line 39 of file components/common/inc/sl_ip_types.h

sl_ip_address_type_t#

sl_ip_address_type_t

Enumeration of IP address type.

Enumerator
SL_IPV4

IPv4.

SL_IPV6

IPv6. Unspecified sub-type.

SL_IPV6_LINK_LOCAL

IPv6. Link local address.

SL_IPV6_SITE_LOCAL

IPv6. Site local address.

SL_IPV6_GLOBAL

IPv6. Global address.

SL_INVALID_IP

SL_INVALID_IP.


Definition at line 42 of file components/common/inc/sl_ip_types.h

sl_ip_management_t#

sl_ip_management_t

Enumeration of IP Management type.

Enumerator
SL_IP_MANAGEMENT_STATIC_IP

Assign STATIC IP address to an interface.

SL_IP_MANAGEMENT_DHCP

Assign IP address to an interface dynamically using DHCP.

SL_IP_MANAGEMENT_LINK_LOCAL

Assign IP address using link-local addressing.


Definition at line 52 of file components/common/inc/sl_ip_types.h