inet6_opt_append_ts64()--Append New Option to IPv6 Extension Header


  Syntax
  #include <netinet/in.h>

  int inet6_opt_append_ts64(void *extension_buffer,
                            socklen_t extension_length,
                            int offset,
                            uint8_t option_type,
                            socklen_t option_length,
                            uint32_t alignment,
                            void * __ptr64 data_bufferp)

  Service Program Name: QSOSRV1IP6

  Default Public Authority: *USE

  Threadsafe: Yes

The inet6_opt_append_ts64() function returns the updated total length of the extension header after adding the new option of length, option_length, and alignment, alignment. If extension_buffer is not NULL, it will also insert any padding required to align the option, initialize the option by setting the type and length fields, and return a pointer to the location for the option content in data_bufferp. inet6_opt_append_ts64() differs from inet6_opt_append() in that inet6_opt_append_ts64() accepts 8-byte teraspace pointers.


For a discussion of the parameters, authorities required, return values, and other related information, see inet6_opt_append()--Append New Option to IPv6 Extension Header.


Usage Notes

All of the usage notes for inet6_opt_append()--Append New Option to IPv6 Extension Header apply to inet6_opt_append_ts64().



API introduced: V6R1

[ Back to top | UNIX-Type APIs | APIs by category ]