ip6.3 revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5
2N/A.fp 5 B
2N/A.de Af
2N/A.ds ;G \\*(;G\\f\\$1\\$3\\f\\$2
2N/A.if !\\$4 .Af \\$2 \\$1 "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
2N/A..
2N/A.de aF
2N/A.ie \\$3 .ft \\$1
2N/A.el \{\
2N/A.ds ;G \&
2N/A.nr ;G \\n(.f
2N/A.Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
2N/A\\*(;G
2N/A.ft \\n(;G \}
2N/A..
2N/A.de L
2N/A.aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
2N/A..
2N/A.de LR
2N/A.aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
2N/A..
2N/A.de RL
2N/A.aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
2N/A..
2N/A.de EX \" start example
2N/A.ta 1i 2i 3i 4i 5i 6i
2N/A.PP
2N/A.RS
2N/A.PD 0
2N/A.ft 5
2N/A.nf
2N/A..
2N/A.de EE \" end example
2N/A.fi
2N/A.ft
2N/A.PD
2N/A.RE
2N/A.PP
2N/A..
2N/A.TH IP6 3
2N/A.SH NAME
2N/Aip6 \- IP V6 address support
2N/A.SH SYNOPSIS
2N/A.EX
2N/A#include <ip6.h>
2N/A
2N/Achar* fmtip6(unsigned char* addr, int bits);
2N/Aint strtoip6(const char* str, char** end, unsigned char* addr, unsigned char* bits);
2N/A.EE
2N/A
2N/A.SH DESCRIPTION
2N/A.L fmtip6()
2N/Aformats the IPV6 address
2N/A.L addr
2N/Awith optional prefix bits
2N/A.L bits
(0 if not a prefix) into a thread-specific 0-terminated temporary buffer and returns a pointer
to the formatted value.
.PP
.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
.BI / 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.
.SH "SEE ALSO"
dss(1)