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

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

inet6_opt_find(3)

Contents


NAME    [Toc]    [Back]

       inet6_opt_find  -  Find  a specific option in an extension
       header

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

       int inet6_opt_find(
               void *extbuf,
               size_t extlen,
               int prevlen,
               uint8_t type,
               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().  Specifies
       the type of option to find.  Points to the length  of  the
       option found.  Points to the option data.

DESCRIPTION    [Toc]    [Back]

       The  inet6_opt_find()  function searches a received option
       extension header for an option specified by type.   If  it
       finds  the  specified option, it returns the option length
       and a pointer to the option data. In addition, it  returns
       an  offset to the next option that you specify in the prevlen
 parameter to subsequent calls to inet6_opt_next()  in
       order  to  search  for  additional occurrences of the same
       option type.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the inet6_opt_find()  function
       returns an offset from which you can begin the next search
       in the data buffer. Upon failure, it returns a -1.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:    inet6_opt_append(3),    inet6_opt_finish(3),
       inet6_opt_get_val(3),                   inet6_opt_init(3),
       inet6_opt_next(3), inet6_opt_set_val(3).

       Network Programmer's Guide



                                                inet6_opt_find(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_finish Tru64 Return the total length of an IPv6 extension header, including padding, and initialize the option
inet6_opt_init Tru64 Return the length of an IPv6 extension header with no options and initialize the header
inet6_opt_next Tru64 Parse received option extension headers
dmFXIsGLExtensionSupported IRIX Find out if a GL Extension is supported
limits Tru64 Header files for implementation-specific constants
getoption IRIX retrieve an option from the option database
h2ph OpenBSD convert .h C header files to .ph Perl header files
h2ph IRIX convert .h C header files to .ph Perl header files
h2ph Linux convert .h C header files to .ph Perl header files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service