inet6_opt_find man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

inet6_opt_find(3)					     inet6_opt_find(3)

       inet6_opt_find - Find a specific option in an extension header

       #include <netinet/ip6.h>

       int inet6_opt_find(
	       void *extbuf,
	       size_t extlen,
	       int prevlen,
	       uint8_t type,
	       size_t *lenp,
	       void **databufp );

       Standard C Library (libc)

       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

       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.

       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.

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

       Network Programmer's Guide


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net