Linux Kernel
3.7.1
|
#include <linux/types.h>
Go to the source code of this file.
Macros | |
#define | INET_ADDRSTRLEN (16) |
#define | INET6_ADDRSTRLEN (48) |
Functions | |
__be32 | in_aton (const char *str) |
int | in4_pton (const char *src, int srclen, u8 *dst, int delim, const char **end) |
int | in6_pton (const char *src, int srclen, u8 *dst, int delim, const char **end) |
in4_pton - convert an IPv4 address from literal to binary representation : the start of the IPv4 address string : the length of the string, -1 means strlen(src) : the binary (u8[4] array) representation of the IPv4 address : the delimiter of the IPv4 address in , -1 means no delimiter : A pointer to the end of the parsed string will be placed here
Return one on success, return zero when any error occurs and will point to the end of the parsed string.
in6_pton - convert an IPv6 address from literal to binary representation : the start of the IPv6 address string : the length of the string, -1 means strlen(src) : the binary (u8[16] array) representation of the IPv6 address : the delimiter of the IPv6 address in , -1 means no delimiter : A pointer to the end of the parsed string will be placed here
Return one on success, return zero when any error occurs and will point to the end of the parsed string.