psh_ipv6-route(3)

SYNOPSIS

pinit ipv6-route pkt [maxlength [length]]

pfree pkt

pget ipv6-route pkt field-name

pset ipv6-route pkt field-name value

plist pkt ipv6-route

DESCRIPTION

pinit ipv6-route pkt [maxlength [length]]
    Initialize a IPv6 route option extension header packet variable. For more information on the maxlength and length parameters, see the psh(1) manual page.

pfree pkt
    Free the indicated packet variable named pkt.

pget pkt ipv6-route field-name
    Fetch the indicated field field-name from the indicated packet pkt. The valid fields are the following:

    nexthdr

    hdrextlen ( calculated in unit of octets - 1 octet )

    type

    segment ( segment left for routing )

    flag ( flag for loose/strict routing )

    addr

pset pkt ipv6-route field-name value
    Sets the values in the indicated field of the packet pkt.

    nexthdr value

    hdrextlen value in octet excluding first octet

    type value, only 0 is supported

    segment value

    flag val

    add-addr v6-style address

    del-addr v6-style address

    NOTE: A number of addr values can be added to the packet,
          but with each pset pkt ipv6-route add-addr val,
          you need to adjust segment, flag. hdrextlen is
          adjusted automatically when add-addr or del-addr
          is used. Normally there is NO need to update hdrextlen,
          it is updated by the packet shell library.

    Refer to RFC1883 for an explanation of the fields.

plist pkt ipv6-route
    List the indicated packet pkt for each field .

FILES

/opt/psh/lib/ipv6-route
    Dynamically linked library protocol for IPv6 routing header extension.

SEE ALSO
xpsh(1), psh(1), protolib(3). ipv6-opts(3).