inet6_opt_next man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

inet6_opt_next(3)					     inet6_opt_next(3)

NAME
       inet6_opt_next - Parse received option extension headers

SYNOPSIS
       #include <netinet/ip6.h>

       int inet6_opt_next(
	       void *extbuf,
	       size_t extlen,
	       int prevlen,
	       uint8_t *typep,
	       size_t *lenp,
	       void **databufp );

LIBRARY
       Standard C Library (libc)

PARAMETERS
       Points  to  a  buffer that contains an extension header.	 Specifies the
       length, in bytes, of the extension header.  Specifies the  location  in
       the extension header of an option. Valid values are either 0 (zero) for
       the first option or the length returned from a previous call to	either
       inet6_opt_next() or inet6_opt_find().  Points to the type of the option
       found.  Points to the length of the option found.  Points to the option
       data.

DESCRIPTION
       The inet6_opt_next() function parses a received option extension header
       and returns the next option. In addition, it returns an offset  to  the
       next  option  that  you	specify in the prevlen parameter to subsequent
       calls to inet6_opt_next().

       This function does not return any PAD1 or PADN options.

RETURN VALUES
       Upon successful completion, the inet6_opt_next() function  returns  the
       offset for the next option in the data buffer. Upon failure, it returns
       a -1.

SEE ALSO
       Functions: inet6_opt_append(3), inet6_opt_find(3), inet6_opt_finish(3),
       inet6_opt_get_val(3), inet6_opt_init(3), inet6_opt_set_val(3).

       Network Programmer's Guide

							     inet6_opt_next(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net