HOME


NAME

ip6_opn_dissect - an internet protocol version 6 options dissect function

SYNOPSIS

opn=ip6_opn_dissect(pkt,offset,opn_end)

IP6OPT_PAD1 = 0             
IP6OPT_PADN = 1     
IP6OPT_RTALERT = 5                     
IP6OPT_JUMBO = 194           

DESCRIPTION

dissect IPv6 ' s options.  dissectable are:

Pad1
   +--------+
   |00000000|
   +--------+

PadN
   +--------+--------+- - - - - - - - -
   |00000001|Data Len|  Option Data
   +--------+--------+- - - - - - - - -

Router Alert
   +--------+--------+--------+--------+
   |00000101|00000010|Value (2 octets) |
   +--------+--------+--------+--------+

Jumbograms
                     +--------+--------+
                     |11000010|00000100|
   +--------+--------+--------+--------+
   |       Jumbo Payload Length        |
   +--------+--------+--------+--------+  

references RFC 2460, 2711, 2675

funtion accepts three arguments:
    pkt is a packet reference containing the whole already dissected packet
    offset is the position inside packet to start dissection
    opn_end equals offset plus option length

funtion returns one list:
    opn is a list
    each item of the list is a dissected option
    this is the option's prototype: [option_code,option_length,(option_field1,option_field2,.......,option_fieldN)] 
    note: negative option_code means option exceeds global options length      

HOME


This document was generated by paolo bastiancich on January, 16 2003 using texi2html