Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ inet6_opt_next(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inet6_opt_append(3)

inet6_opt_find(3)

inet6_opt_finish(3)

inet6_opt_get_val(3)

inet6_opt_init(3)

inet6_opt_set_val(3)

inet6_opt_next(3)  —  Subroutines

NAME

inet6_opt_next − Parse received option extension headers

SYNOPSIS

#include <netinet/ip6.h>
int inet6_opt_next(
        void ∗extbuf,
        size_t extlen,
        int prevlen,
        uint8_t ∗typep,
        size_t ∗lenp,
        void ∗∗databufp );

LIBRARY

Standard C Library (libc)

PARAMETERS

extbuf
Points to a buffer that contains an extension header.

extlen
Specifies the length, in bytes, of the extension header.

prevlen
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(). 

typep
Points to the type of the option found.

lenpPoints to the length of the option found. 

databufp
Points to the option data.

DESCRIPTION

The inet6_opt_next() function parses a received option extension header and returns the next option. In addition, it returns an offset to the next option that you specify in the prevlen parameter to subsequent calls to inet6_opt_next(). 

This function does not return any PAD1 or PADN options. 

RETURN VALUES

Upon successful completion, the inet6_opt_next() function returns the offset for the next option in the data buffer. Upon failure, it returns a -1. 

SEE ALSO

Functions: inet6_opt_append(3), inet6_opt_find(3), inet6_opt_finish(3), inet6_opt_get_val(3), inet6_opt_init(3), inet6_opt_set_val(3). 

Network Programmer’s Guide

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026