xref: /titanic_51/usr/src/lib/libast/common/man/ip6.3 (revision cbdcbd056f15c9c9fd82d5543b3a502677c4d391)
.fp 5 B .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

IP6 3
NAME
ip6 - IP V6 address support
SYNOPSIS
.EX #include <ip6.h> char* fmtip6(unsigned char* addr, int bits); int strtoip6(const char* str, char** end, unsigned char* addr, unsigned char* bits);
DESCRIPTION
.L fmtip6() formats the IPV6 address .L addr with optional prefix bits .L bits (0 if not a prefix) into a thread-specific 0-terminated temporary buffer and returns a pointer to the formatted value.

.L strtoip6() converts a formatted IPV6 address from the 0-terminated string .L str into a host order IPV6 address in .L addr which must be a buffer of at least .L IP6ADDR bytes. If .L bits is not 0 then an optional / bits (prefix size in bits) is parsed and .L *bits is set to the number of prefix bits. If .L end is not 0 then .L *end will point to the first unparsed character in .L str on return. 0 is returned on success, -1 on failure.

"SEE ALSO"
dss(1)