HOME


NAME

ppp_oe_dissect - point-to-point over ethernet dissect function

SYNOPSIS

data,offset=ppp_oe_dissect(pkt,offset)

PPPOE_CODE_SESSION = 0x0
PPPOE_CODE_PADO = 0x07
PPPOE_CODE_PADI = 0x09
PPPOE_CODE_PADR = 0x19
PPPOE_CODE_PADS = 0x65
PPPOE_CODE_PADT = 0xa7

DESCRIPTION

dissect point-to-point over ethernet frames

                  PPP over Ethernet Frame
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  VER  | TYPE  |      CODE     |          SESSION_ID           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |            LENGTH             |           payload             ~
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 reference RFC 2516

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 5 long tuple

ver
type
code
session_id
length

    offset is the original offset plus 6

ADDITIONAL

see also ppp_oe_tag_dissect function

HOME


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