wiki:mnt
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="mnt" longname="MNT" showsumtemplate="mnt">
  2.   <format>
  3.     <fields>
  4.       <if expr="checklookuptable($rpctable, $ipsrc, $ipdst, $portsrc, $portdst) and $rpctable.type==0"> <!-- is a call -->
  5.         <if-true>
  6.           <switch expr="$rpctable.proc">
  7.             <case value="0x01"> <includeblk name="MNTargs"/> </case>
  8.             <case value="0x03"> <includeblk name="UMNTargs"/> </case>
  9.             <default>
  10.               <field type="variable" name="data" longname="Input" expr="$packetlength - $currentoffset" showtemplate="Field4BytesHex"/>
  11.             </default>
  12.           </switch>
  13.          
  14.         </if-true>
  15.       </if>
  16.       <if expr="checklookuptable($rpctable, $ipsrc, $ipdst, $portsrc, $portdst) and $rpctable.type==1">  <!-- is a reply -->
  17.         <if-true>
  18.           <switch expr="$rpctable.proc">
  19.             <case value="0x01"> <includeblk name="MNTres"/> </case>
  20.             <!--<case value="0x03"> <includeblk name="UMNTres"/> </case> --> <!-- return void -->
  21.             <default>
  22.               <field type="variable" name="data" longname="Output" expr="$packetlength - $currentoffset" showtemplate="Field4BytesHex"/>
  23.             </default>
  24.           </switch>
  25.          
  26.         </if-true>
  27.       </if>
  28.       <!--<field type="variable" name="data" longname="Data" expr="$packetlength - $currentoffset" showtemplate="FieldAscii"/>-->
  29.     </fields>
  30.  
  31.     <block name="MNTargs" longname="MNT Arguments">
  32.       <includeblk name="dir_path"/>
  33.     </block>
  34.  
  35.     <block name="UMNTargs" longname="UMNT Arguments">
  36.       <includeblk name="dir_path"/>
  37.     </block>
  38.    
  39.     <block name="MNTres" longname="MNT Results">
  40.       <includeblk name="fhstatus"/>
  41.     </block>
  42.    
  43.     <block name="fhstatus" longname="File Handle Status">
  44.       <field type="fixed" name="status" longname="Status" size="4" showtemplate="FieldHex"/>
  45.       <if expr="not buf2int(status)">
  46.         <if-true>
  47.           <field type="fixed" name="length_fhandle" longname="Length File Handle" size="4" showtemplate="FieldDec"/>
  48.           <field type="variable" name="fhandle" longname="File Handle" expr="buf2int(length_fhandle)" showtemplate="FieldHex"/>
  49.           <if expr="(buf2int(length_fhandle) mod 4) != 0">
  50.             <if-true>
  51.               <field type="variable" name="filling" longname="Filling" expr="((buf2int(length_fhandle) div 4)+1)*4 - buf2int(length_fhandle)" showtemplate="FieldHex"/>
  52.             </if-true>
  53.           </if>
  54.           <field type="fixed" name="number_auth_flavors" longname="# Auth Flavors" size="4" showtemplate="FieldDec"/>
  55.           <block name="auth_flavors" longname="Auth_Flavors">
  56.             <loop type="times2repeat" expr="buf2int(number_auth_flavors)">
  57.               <field type="fixed" name="auth_flavor" longname="Auth Flavor" size="4" showtemplate="FieldHex"/>
  58.             </loop>
  59.           </block>
  60.          
  61.         </if-true>
  62.       </if>
  63.      
  64.     </block>
  65.     <block name="dir_path" longname="DirPath">
  66.       <field type="fixed" name="length_path" longname="Length Path" size="4" showtemplate="FieldDec"/>
  67.       <field type="variable" name="path" longname="Path" expr="buf2int(length_path)" showtemplate="FieldAscii"/>
  68.       <!--<if expr="debug(buf2int(length_path) div 4)"><if-true></if-true></if>-->
  69.       <if expr="(buf2int(length_path) mod 4) != 0">
  70.         <if-true>
  71.           <field type="variable" name="filling" longname="Filling" expr="((buf2int(length_path) div 4)+1)*4 - buf2int(length_path)" showtemplate="FieldHex"/>
  72.         </if-true>
  73.       </if>
  74.     </block>
  75.   </format>
  76.  
  77.   <visualization>
  78.     <showsumtemplate name="mnt">
  79.       <section name="next"/>
  80.       <text value=" MNT"/>
  81.     </showsumtemplate>
  82.   </visualization>
  83. </protocol>
  84.  
  85.  
Processing time: 0.028