wiki:defaultproto
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="defaultproto" longname="Other data" comment="Generic protocol that is called when no other protocols are available" showsumtemplate="defaultproto">
  2.   <execute-code>
  3.     <before when="($L4proto == #tcp)">
  4.       <!-- Since both sides of the connection are stored in the table, we can just check for one of them -->
  5.       <if expr="not updatelookuptable($unknownprotosessiontable, $firstip, $secondip, $firstport, $secondport)">
  6.         <if-true>
  7.           <assign-variable name="$session_hit" value="1"/>
  8.           <update-lookuptable name="$unknownprotosessiontable" action="add" validity="updateonhit" keeptime="300" hittime="300">
  9.             <lookupkey value="$firstip"/>
  10.             <lookupkey value="$secondip"/>
  11.             <lookupkey value="$firstport"/>
  12.             <lookupkey value="$secondport"/>
  13.           </update-lookuptable>
  14.         </if-true>
  15.       </if>
  16.     </before>
  17.    
  18.     <before when="($L4proto == #udp)">
  19.       <!-- Since both sides of the connection are stored in the table, we can just check for one of them -->
  20.       <if expr="not updatelookuptable($unknownprotosessiontable, $ipsrc, $ipdst, $portsrc, $portdst)">
  21.         <if-true>
  22.           <assign-variable name="$session_hit" value="1"/>
  23.           <update-lookuptable name="$unknownprotosessiontable" action="add" validity="updateonhit" keeptime="300" hittime="300">
  24.             <lookupkey value="$ipsrc"/>
  25.             <lookupkey value="$ipdst"/>
  26.             <lookupkey value="$portsrc"/>
  27.             <lookupkey value="$portdst"/>
  28.           </update-lookuptable>
  29.           <update-lookuptable name="$unknownprotosessiontable" action="add" validity="updateonhit" keeptime="300" hittime="300">
  30.             <lookupkey value="$ipdst"/>
  31.             <lookupkey value="$ipsrc"/>
  32.             <lookupkey value="$portdst"/>
  33.             <lookupkey value="$portsrc"/>
  34.           </update-lookuptable>
  35.         </if-true>
  36.       </if>
  37.     </before>
  38.   </execute-code>
  39.   <format>
  40.     <fields>
  41.       <field type="variable" name="payload" longname="Data payload" expr="$packetlength - $currentoffset" showtemplate="Field4BytesHex"/>
  42.     </fields>
  43.   </format>
  44.  
  45.   <visualization>
  46.     <showsumtemplate name="defaultproto">
  47.       <section name="L7"/>
  48.       <text value="Generic Data"/>
  49.     </showsumtemplate>
  50.   </visualization>
  51. </protocol>
  52.  
  53.  
Processing time: 0.018