Standards / Extensions | C or C++ | Dependencies |
---|---|---|
RFC3542 |
both | z/OS® V1R7 |
#define _OPEN_SYS_SOCK_IPV6
#include <netinet/in.h>
int inet6_opt_get_val(void *databuf, int offset,
void *val, socklen_t vallen);
inet6_opt_get_val() extracts data items of various sizes in the data portion of the option.
If successful, inet6_opt_get_val() returns the offset for the next field (offset + vallen) that can be used when extracting option content with multiple fields.
Upon failure, returns -1 and sets errno to one of the following:
EINVAL If one of the following is true: