| Version 2 (modified by ivano, 11 months ago) (diff) |
|---|
Running NetPDL parser failed a:
0, PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/idn.ini on line 1 in Unknown on line 0 /usr/local/netpdl/parser.php
NetPDL dissector..........VALIDATED !!
0, PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/idn.ini on line 1 in Unknown on line 0 /usr/local/netpdl/parser.php
NetPDL dissector..........VALIDATED !!
Original XML source
- <protocol name="llc" longname="IEEE 802.2 Logical Link Control" showsumtemplate="llc">
- <format>
- <fields>
- <field type="fixed" name="dsap" longname="DSAP" size="1" showtemplate="FieldHex"/>
- <field type="fixed" name="ssap" longname="SSAP" size="1" showtemplate="FieldHex"/>
- <if expr="(buf2int($packet[$currentoffset:1]) bitwand 0b00000011) == 0b00000011"> <!-- last two bits are '11' -->
- <!-- LLC Unnumbered -->
- <if-true>
- <field type="fixed" name="ctrl" longname="Control (Unnumbered)" size="1" showtemplate="FieldHex">
- <field type="bit" name="mod" longname="Modifier" mask="0xE0" size="1" showtemplate="FieldHex"/>
- <field type="bit" name="pf" longname="Poll / Final" mask="0x10" size="1" showtemplate="FieldBin"/>
- <field type="bit" name="type" longname="Type" mask="0x0C" size="1" showtemplate="FieldHex"/>
- <field type="bit" name="flag" longname="Flag (Unnumbered frame)" mask="0x03" size="1" showtemplate="FieldBin"/>
- </field>
- </if-true>
- <if-false>
- <if expr="(buf2int($packet[$currentoffset:1]) bitwand 0b00000001) == 0b00000000"> <!-- last bit is '0' -->
- <!-- LLC Information -->
- <if-true>
- <!-- Warning: the LLC information ctrl field can be also 16 bits -->
- <field type="fixed" name="ctrl" longname="Control (Information)" size="1" showtemplate="FieldHex">
- <field type="bit" name="nr" longname="Sequence Number (Receiver)" mask="0xE0" size="1" showtemplate="FieldHex"/>
- <field type="bit" name="pf" longname="Poll / Final" mask="0x10" size="1" showtemplate="FieldBin"/>
- <field type="bit" name="type" longname="Type" mask="0x0C" size="1" showtemplate="FieldHex"/>
- <field type="bit" name="flag" longname="Flag (Information frame)" mask="0x03" size="1" showtemplate="FieldBin"/>
- </field>
- </if-true>
- <if-false>
- <if expr="(buf2int($packet[$currentoffset:1]) bitwand 0b00000001) == 0b00000001"> <!-- last two bits are '01' -->
- <!-- LLC Supervisor -->
- <if-true>
- <!-- Warning: the LLC Supervisor ctrl field can be also 16 bits -->
- <field type="fixed" name="ctrl" longname="Control (Supervisor)" size="1" showtemplate="FieldHex">
- <field type="bit" name="nr" longname="Sequence Number (Receiver)" mask="0xE0" size="1" showtemplate="FieldDec"/>
- <field type="bit" name="pf" longname="Poll / Final" mask="0x10" size="1" showtemplate="FieldBin"/>
- <field type="bit" name="ns" longname="Sequence Number (Sender)" mask="0x0E" size="1" showtemplate="FieldDec"/>
- <field type="bit" name="flag" longname="Flag (Supervisor frame)" mask="0x01" size="1" showtemplate="FieldBin"/>
- </field>
- </if-true>
- </if>
- </if-false>
- </if>
- </if-false>
- </if>
- </fields>
- </format>
- <encapsulation>
- <if expr="(buf2int(dsap) == 0xE0) and (buf2int(ssap) == 0xE0) and (buf2int(ctrl) == 0x03) and ($packet[$currentoffset:2] == '\xFF\xFF')">
- <if-true>
- <nextproto proto="#ipx"/>
- </if-true>
- </if>
- <switch expr="buf2int(dsap)">
- <case value="0x06"> <nextproto proto="#ip"/> </case>
- <case value="0x42"> <nextproto proto="#stp"/> </case>
- <case value="0xAA"> <nextproto proto="#snap"/> </case>
- <case value="0xF0"> <nextproto proto="#netbeui"/></case>
- </switch>
- </encapsulation>
- <visualization>
- <showsumtemplate name="llc">
- <text value=" - "/>
- <if expr="(buf2int(ctrl) bitwand 0b00000011) == 0b00000011">
- <if-true>
- <text value="LLC Unnumbered "/>
- </if-true>
- <if-false>
- <if expr="(buf2int(ctrl) bitwand 0b00000001) == 0b00000000">
- <!-- LLC Information -->
- <if-true>
- <text value="LLC Information "/>
- </if-true>
- <if-false>
- <if expr="(buf2int(ctrl) bitwand 0b00000011) == 0b00000001">
- <!-- LLC Supervisor -->
- <if-true>
- <text value="LLC Supervisor "/>
- </if-true>
- </if>
- </if-false>
- </if>
- </if-false>
- </if>
- <text value=": DSAP "/>
- <protofield name="dsap" showdata="showvalue"/>
- <text value=", Ctrl "/>
- <protofield name="ctrl" showdata="showvalue"/>
- </showsumtemplate>
- </visualization>
- </protocol>
Processing time: 0.034
