Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inet.h File Reference
#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)
 

Macro Definition Documentation

#define INET6_ADDRSTRLEN   (48)

Definition at line 52 of file inet.h.

#define INET_ADDRSTRLEN   (16)

Definition at line 51 of file inet.h.

Function Documentation

int in4_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.

Definition at line 122 of file utils.c.

int in6_pton ( const char src,
int  srclen,
u8 dst,
int  delim,
const char **  end 
)

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.

Definition at line 188 of file utils.c.

__be32 in_aton ( const char str)

Definition at line 54 of file utils.c.