HOME


NAME

hbh_dissect - an hop-by-hop protocol dissect function

SYNOPSIS

data,offset=hbh_dissect(pkt,offset)

DESCRIPTION

dissect an hop_by_hop protocol

                  HtoH Header Format
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Next Header  |  Hdr Ext Len  |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
   |                                                               |
   .                                                               .
   .                            Options                            .
   .                                                               .
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                     reference RFC 2460

funtion accepts two arguments:
    pkt is a packet reference containing the whole packet to be dissect
    offset is the position inside packet to start dissection

funtion return two values:
    data is a 3 length tuple:

next header
header extension length
options

    offset is the original offset plus header_extension_length

ADDITIONAL
options is a tuple as described in ip6option document

HOME


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