wiki:vlan

Version 1 (modified by livio, 6 years 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 !!

Original XML source
  1. <protocol name="vlan" longname="Virtual LAN (802.3ac)" showsumtemplate="vlan">
  2.   <format>
  3.     <fields>
  4.       <block name="vlan" size="2" longname="Tag Control Information">
  5.         <field type="bit" name="pri" longname="User Priority" mask="0xE000" size="2" showtemplate="FieldHex"/>
  6.         <field type="bit" name="cfi" longname="CFI" mask="0x1000" size="2" showtemplate="FieldDec"/>
  7.         <field type="bit" name="vlanid" longname="VLAN ID" mask="0x0FFF" size="2" showtemplate="FieldDec"/>
  8.       </block>
  9.  
  10.       <field type="fixed" name="type" longname="Ethertype - Length" size="2" showtemplate="eth.typelength"/>
  11.     </fields>
  12.   </format>
  13.  
  14.  
  15.   <encapsulation>
  16.     <switch expr="buf2int(type)">
  17.       <case value="0" maxvalue="1500"> <nextproto proto="#llc"/> </case>
  18.       <case value="0x800"> <nextproto proto="#ip"/> </case>
  19.       <case value="0x806"> <nextproto proto="#arp"/> </case>
  20.       <case value="0x8863"> <nextproto proto="#pppoed"/> </case>
  21.       <case value="0x8864"> <nextproto proto="#pppoe"/> </case>
  22.       <case value="0x86DD"> <nextproto proto="#ipv6"/> </case>
  23.     </switch>
  24.   </encapsulation>
  25.  
  26.   <visualization>
  27.     <showsumtemplate name="vlan">
  28.       <text value=" (VLAN-ID "/>
  29.       <protofield name="vlanid" showdata="showvalue"/>
  30.       <text value=")"/>
  31.     </showsumtemplate>
  32.   </visualization>
  33.  
  34. </protocol>
  35.  
Processing time: 0.012