STM32F7 Ethernet interface for nucleo STM32F767

Embed: (wiki syntax)

« Back to documentation index

IP address handling

IP address handling

Data Structures

struct  ip_addr
 A union struct for both IP version's addresses. More...

Modules

 IPv4 only
 IPv6 only

Typedefs

typedef struct ip_addr ip_addr_t
 A union struct for both IP version's addresses.

Enumerations

enum  lwip_ip_addr_type { IPADDR_TYPE_V4 = 0U, IPADDR_TYPE_V6 = 6U, IPADDR_TYPE_ANY = 46U }
 

IP address types for use in ip_addr_t.type member.

More...

Functions

int ipaddr_aton (const char *cp, ip_addr_t *addr)
 Convert IP address string (both versions) to numeric.

Typedef Documentation

A union struct for both IP version's addresses.

ATTENTION: watch out for its size when adding IPv6 address scope!

Definition at line 244 of file ip_addr.h.


Enumeration Type Documentation

IP address types for use in ip_addr_t.type member.

See also:
tcp_new_ip_type(), udp_new_ip_type(), raw_new_ip_type().
Enumerator:
IPADDR_TYPE_V4 

IPv4.

IPADDR_TYPE_V6 

IPv6.

IPADDR_TYPE_ANY 

IPv4+IPv6 ("dual-stack")

Definition at line 54 of file ip_addr.h.


Function Documentation

int ipaddr_aton ( const char *  cp,
ip_addr_t addr 
)

Convert IP address string (both versions) to numeric.

The version is auto-detected from the string.

Parameters:
cpIP address string to convert
addrconversion result is stored here
Returns:
1 on success, 0 on error

Definition at line 80 of file lwip_ip.c.