

- #CONVERT MAC ADDRESS FROM INTEGER TO STRING REPRESENTATION MANUAL#
- #CONVERT MAC ADDRESS FROM INTEGER TO STRING REPRESENTATION SERIES#
0 is returned if src does not contain aĬharacter string representing a valid network address in the RETURN VALUE top inet_pton() returns 1 on success (network address was See RFC 2373 for further details on the representation of Hexadecimal values that define the six most-significantġ6-bit pieces of the address (i.e., 96 bits), and theĭs express a value in dotted-decimal notation thatĭefines the least significant 32 bits of the address. X:x:x:x:x:x:d.d.d.d, where the six leading xs are An alternate format is useful for expressing Wildcard address, consisting of all zeros, can beģ. For example, the loopbackĪddress 0:0:0:0:0:0:0:1 can be abbreviated as ::1.
#CONVERT MAC ADDRESS FROM INTEGER TO STRING REPRESENTATION SERIES#
A series of contiguous zero values in the preferredįormat can be abbreviated to. This formĬonsists of eight hexadecimal numbers, each of whichĮxpresses a 16-bit value (i.e., each x can be up to 4Ģ. The address is converted to a struct in6_addr and copied to dst, which must be sizeof(struct in6_addr) (16) bytes (128 bits) long.

Must be sizeof(struct in_addr) (4) bytes (32 bits) long.ĪF_INET6 src points to a character string containing an IPv6 The address isĬonverted to a struct in_addr and copied to dst, which " ", where ddd is a decimal number of up to Network address in dotted-decimal format, The following address families are currently supported:ĪF_INET src points to a character string containing an IPv4

The af argument must be eitherĪF_INET or AF_INET6. This function converts the character string src into a networkĪddress structure in the af address family, then copies the SYNOPSIS top #include int inet_pton(int af, const char *restrict src, void *restrict dst ) DESCRIPTION top Inet_pton - convert IPv4 and IPv6 addresses from text to binary
#CONVERT MAC ADDRESS FROM INTEGER TO STRING REPRESENTATION MANUAL#
INET_PTON(3) Linux Programmer's Manual INET_PTON(3) NAME top
