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

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

inet6_opt_init(3)

Contents


NAME    [Toc]    [Back]

       inet6_opt_init  -  Return  the length of an IPv6 extension
       header with no options and initialize the header

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

       int inet6_opt_init(
               void *extbuf,
               size_t extlen );

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  initialize.  Valid
       values are 0 and any number that is a multiple of 8.

DESCRIPTION    [Toc]    [Back]

       The inet6_opt_init() function when called with extbuf as a
       NULL pointer and extlen as 0, returns the number of  bytes
       in an extension header that has no options.

       If  you  specify extbuf as a valid pointer and extlen as a
       number that is a multiple of 8, the function  returns  the
       same  information as in the previous case, initializes the
       extension header, and sets the length field.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the inet6_opt_init()  function
       returns the number of bytes in an extension header with no
       options.  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_next(3), inet6_opt_set_val(3).

       Network Programmer's Guide



                                                inet6_opt_init(3)
[ Back ]
 Similar pages
Name OS Title
inet6_opt_finish Tru64 Return the total length of an IPv6 extension header, including padding, and initialize the option
inet6_opt_append Tru64 Return the length of an IPv6 extension header with a new option and append the option
inet6_rth_init Tru64 Initialize an IPv6 Routing header buffer
inet6_rthdr_reverse NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_segments NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_getaddr NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_getflags NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_segments FreeBSD IPv6 Routing Header Options manipulation
inet6_rthdr_reverse FreeBSD IPv6 Routing Header Options manipulation
inet6_rthdr_add NetBSD IPv6 Routing Header Options manipulation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service