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

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

inet6_opt_finish(3)

Contents


NAME    [Toc]    [Back]

       inet6_opt_finish  -  Return  the  total  length of an IPv6
       extension header, including padding,  and  initialize  the
       option

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

       int inet6_opt_finish(
               void *extbuf,
               size_t extlen,
               int prevlen );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

PARAMETERS    [Toc]    [Back]

       Points to a buffer that contains an extension header. This
       is either a valid pointer or a  NULL  pointer.   Specifies
       the length of the extension header to finish initializing.
       A valid value is any number greater than or  equal  to  0.
       Specifies  the  length  of  the existing extension header.
       Obtain this value from a prior call to inet6_opt_init() or
       inet6_opt_append().

DESCRIPTION    [Toc]    [Back]

       The inet6_opt_finish() function when called with extbuf as
       a NULL pointer and extlen as 0, returns the  total  number
       of  bytes in an extension header, including final padding.

       If you specify extbuf as  a  valid  pointer  and  a  valid
       extlen  parameter,  the function returns the same information
 as  in  the  previous  case,  increments  the  buffer
       pointer,  and  verifies that the buffer is large enough to
       hold the header.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the  inet6_opt_finish()  function
  returns  the  total  number of bytes in an extension
       header, including padding. Upon failure, it returns a  -1.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:     inet6_opt_append(3),     inet6_opt_find(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_finish(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_init Tru64 Return the length of an IPv6 extension header with no options and initialize the header
inet6_opt_find Tru64 Find a specific option in an extension header
inet6_rth_init Tru64 Initialize an IPv6 Routing header buffer
inet6_rth_segments Tru64 Return the number of segments (addresses) in an IPv6 Routing header
inet6_rth_space Tru64 Return the number of bytes required for an IPv6 Routing header
inet6_opt_next Tru64 Parse received option extension headers
inet6_rthdr_getflags OpenBSD IPv6 Routing Header Options manipulation
inet6_rthdr_init NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_space OpenBSD IPv6 Routing Header Options manipulation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service