*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> inet6_opt_next (3)              
Title
Content
Arch
Section
 

inet6_opt_next(3)

Contents


NAME    [Toc]    [Back]

       inet6_opt_next - Parse received option extension headers

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

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

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

PARAMETERS    [Toc]    [Back]

       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    [Toc]    [Back]

       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    [Toc]    [Back]

       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    [Toc]    [Back]

      
      
       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)
[ Back ]
 Similar pages
Name OS Title
inet6_opt_append Tru64 Return the length of an IPv6 extension header with a new option and append the option
inet6_opt_find Tru64 Find a specific option in an extension header
inet6_opt_finish Tru64 Return the total length of an IPv6 extension header, including padding, and initialize the option
getoption IRIX retrieve an option from the option database
limits IRIX file headers for implementation-specific constants
sat_read_file_info IRIX Portable interfaces to read audit file headers
sat_read_header_info IRIX Portable interfaces to read audit record headers
rmail IRIX handle remote mail received via uucp
gss_process_context_token Tru64 Process token received from peer application.
rmail FreeBSD handle remote mail received via uucp
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service