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

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

inet6_opt_get_val(3)

Contents


NAME    [Toc]    [Back]

       inet6_opt_get_val  - Extract data items from the data portion
 of an IPv6 option

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

       int inet6_opt_get_val(
               void *databuf,
               size_t offset,
               void *val,
               int vallen );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

PARAMETERS    [Toc]    [Back]

       Points to a buffer that contains an extension header. This
       is  a  pointer  returned  by a call to inet6_opt_find() or
       inet6_opt_next().  Specifies the location in the data portion
 of the option from which to extract the data. You can
       access the first byte after the option type and length  by
       specifying  the  offset of 0 (zero).  Points to a destination
 for the extracted data.  Specifies the length of  the
       data, in bytes, to be extracted.

DESCRIPTION    [Toc]    [Back]

       The  inet6_opt_get_val()  function  copies data items from
       data buffer databuf beginning at offset  to  the  location
       val.  In addition, it returns the offset for the next data
       field to assist you in extracting option content that  has
       multiple fields.

       Make sure that each field is aligned on its natural boundaries.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the inet6_opt_get_val()  function
  returns  the  offset  for the next field 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_init(3), inet6_opt_next(3),
       inet6_opt_set_val(3).

       Network Programmer's Guide



                                             inet6_opt_get_val(3)
[ Back ]
 Similar pages
Name OS Title
inet6_opt_set_val Tru64 Insert data items into the data portion of the IPv6 option
inet6_opt_append Tru64 Return the length of an IPv6 extension header with a new option and append the option
dirname OpenBSD extract the directory portion of a pathname
basename FreeBSD extract the base portion of a pathname
basename OpenBSD extract the base portion of a pathname
inet6_opt_finish Tru64 Return the total length of an IPv6 extension header, including padding, and initialize the option
VkOptionMenu IRIX An option menu for use with ViewKit menu items
AFgetframecnt IRIX get the total sample frame count / data bytes / data offset for a specified audio track from an AFfilehandle s
tcflush Tru64 Flush nontransmitted output data or nonread input data
t_snd Tru64 Send normal data or expedited data over a connection
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service