ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

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.

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 216 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/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.