HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

i
inet6_opt_init(3N) inet6_opt_init(3N)
option content with multiple fields.
The first parameter databuf should be a pointer returned by
inet6_opt_next()
or
inet6_opt_find()
containing the data portion of the option.
offset parameter specifies from where in the data portion of the option the value should be extracted.
The first byte after the option type and length is accessed by specifying an offset of zero.
val points to the destination for the extracted data.
To use these functions, the application must be compiled with:
-D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -lxnet -lipv6
These APIs are implemented based on internet-draft Advanced Sockets API for IPv6 (
draft-ietf-
ipngwg-2292bis-02.txt
). The APIs may be updated, replaced, or obsoleted based on future changes
to the document.
RETURN VALUE
inet6_opt_init()
, inet6_opt_append()
, inet6_opt_finish()
, inet6_opt_next()
,
and inet6_opt_find()
return -1 on an error.
EXAMPLES
The Advanced Sockets API for IPv6 (
draft-ietf-ipngwg-2292bis-02.txt
) document gives a
comprehensive example in Appendix C.
AUTHOR
The APIs were developed by HP.
SEE ALSO
IPv6(7P).
Advanced Sockets API for IPv6 (
draft-ietf-ipngwg-2292bis-02.txt
).
HP-UX 11i Version 3: February 2007 3 Hewlett-Packard Company 681