Changes between Version 4 and Version 5 of llc
- Timestamp:
- 08/02/12 14:09:42 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
llc
v4 v5 1 {{{2 #!NetPDL3 1 <protocol name="llc" longname="IEEE 802.2 Logical Link Control" showsumtemplate="llc"> 4 2 <format> … … 48 46 </if-false> 49 47 </if> 48 49 <!-- Ivano: snap --> 50 <if expr="buf2int(dsap) == 0xAA"> 51 <if-true> 52 <field type="fixed" name="OUI" longname="Organization Unique Identifier" size="3" showtemplate="FieldHex"/> 53 <field type="fixed" name="pType" longname="Protocol Type" size="2" showtemplate="snap.type"/> 54 </if-true> 55 </if> 50 56 </fields> 51 57 </format> … … 53 59 54 60 <encapsulation> 55 <if expr="(buf2int(dsap) == 0xE0) and (buf2int(ssap) == 0xE0) and (buf2int(ctrl) == 0x03) and (buf2int($packet[$currentoffset:2]) == 0xFFFF )">61 <if expr="(buf2int(dsap) == 0xE0) and (buf2int(ssap) == 0xE0) and (buf2int(ctrl) == 0x03) and (buf2int($packet[$currentoffset:2]) == 0xFFFF')"> 56 62 <if-true> 57 63 <nextproto proto="#ipx"/> 58 64 </if-true> 59 65 </if> 66 67 <!-- Ivano: snap --> 68 <if expr="buf2int(dsap) == 0xAA"> 69 <if-true> 70 <if expr="buf2int(OUI) == 0"> 71 <if-true> 72 <switch expr="buf2int(pType)"> 73 <case value="0x0800"> <nextproto proto="#ip"/> </case> 74 <case value="0x0806"> <nextproto proto="#arp"/> </case> 75 <case value="0x8137"> <nextproto proto="#ipx"/> </case> 76 </switch> 77 </if-true> 78 </if> 60 79 61 <switch expr="buf2int(dsap)"> 62 <case value="0x06"> <nextproto proto="#ip"/> </case> 63 <case value="0x42"> <nextproto proto="#stp"/> </case> 64 <case value="0xAA"> <nextproto proto="#snap"/> </case> 65 <case value="0xF0"> <nextproto proto="#netbeui"/></case> 66 </switch> 80 <if expr="buf2int(OUI) == 0x00000C"> 81 <if-true> 82 <switch expr="buf2int(pType)"> 83 <case value="0x2000"> <nextproto proto="#cdp"/> </case> 84 <case value="0x010B"> <nextproto proto="#stp"/> </case> 85 </switch> 86 </if-true> 87 </if> 88 </if-true> 89 <if-false> 90 <switch expr="buf2int(dsap)"> 91 <case value="0x06"> <nextproto proto="#ip" preferred="true"/> </case> 92 <case value="0x42"> <nextproto proto="#stp"/> </case> 93 <!-- <case value="0xAA"> <nextproto proto="#snap"/> </case>--> 94 <case value="0xF0"> <nextproto proto="#netbeui"/></case> 95 </switch> 96 </if-false> 97 </if> 67 98 </encapsulation> 68 99 … … 99 130 <protofield name="ctrl" showdata="showvalue"/> 100 131 </showsumtemplate> 132 133 <!-- Ivnao: snap --> 134 <showtemplate name="snap.type" showtype="hex"> 135 <showmap> 136 <switch expr="buf2int(this)"> 137 <case value="0x0800" show="IP"/> 138 <case value="0x0806" show="ARP"/> 139 <case value="0x8137" show="IPX"/> 140 141 <case value="0x2000" show="Cisco Discovery Protocol"/> 142 <case value="0x010B" show="Cisco Per-VLAN Spanning Tree"/> 143 144 <default show="Error in snap.type lookup"/> 145 </switch> 146 </showmap> 147 </showtemplate> 148 149 <showsumtemplate name="snap"> 150 <text value=" - SNAP"/> 151 <if expr="buf2int(type) == 0x010B"> 152 <if-true> 153 <section name="next"/> 154 <text value="Cisco Per-VLAN Spanning Tree"/> 155 </if-true> 156 </if> 157 </showsumtemplate> 158 101 159 </visualization> 102 160 </protocol> 103 }}}
