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

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

inet6_rth_space(3)

Contents


NAME    [Toc]    [Back]

       inet6_rth_space  - Return the number of bytes required for
       an IPv6 Routing header

SYNOPSIS    [Toc]    [Back]

       #include <netinet/ip6.h>

       size_t inet6_rth_space(
               int type,
               int segments );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

PARAMETERS    [Toc]    [Back]

       Specifies the type of Routing header. The valid  value  is
       IPV6_RTHDR_TYPE_0  for IPv6 Routing header type 0.  Specifies
 the number of segments or addresses that  are  to  be
       included in the Routing header.  The valid value is from 0
       to 127, inclusive.

DESCRIPTION    [Toc]    [Back]

       The inet6_rth_space() function determines  the  amount  of
       space,  in  bytes, required for a Routing header. Although
       the function returns the amount of space required, it does
       not allocate buffer space. This enables the application to
       allocate a larger buffer.

       If the application uses ancillary data, it must  pass  the
       returned  length  to CMSG_LEN() to determine the amount of
       memory required for the ancillary data  object,  including
       the cmsghdr structure.

                                  Note

       If  an  application  wants  to  send  other ancillary data
       objects, it must specify them to  sendmsg()  as  a  single
       msg_control buffer.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the inet6_rth_space() function
       returns the length, in bytes, of the  Routing  header  and
       the specified number of segments.  If the type is not supported
 or the number of segments is invalid for  the  type
       of Routing header, the function returns 0.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:     inet6_rth_add(3),     inet6_rth_getaddr(3),
       inet6_rth_init(3),  inet6_rth_reverse(3),   inet6_rth_segments(3).

       Network Programmer's Guide



                                               inet6_rth_space(3)
[ Back ]
 Similar pages
Name OS Title
inet6_rth_segments Tru64 Return the number of segments (addresses) in an IPv6 Routing header
inet6_opt_init Tru64 Return the length of an IPv6 extension header with no options and initialize the header
inet6_rth_add FreeBSD IPv6 Routing Header Options manipulation
inet6_rth_add Tru64 Add an IPv6 address to the Routing header under construction
inet6_rth_init Tru64 Initialize an IPv6 Routing header buffer
inet6_rth_getaddr FreeBSD IPv6 Routing Header Options manipulation
inet6_rthdr_space NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_space OpenBSD IPv6 Routing Header Options manipulation
inet6_rthdr_getflags NetBSD IPv6 Routing Header Options manipulation
inet6_rthdr_segments FreeBSD IPv6 Routing Header Options manipulation
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service