<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="firewall" id="bytespertoperport" charttype="bars">

 <lire:title>Top Bytes per destination IP per Port Report</lire:title>
 <lire:description>
  <para>
    This report lists the volume were asked to receive per destination IP per
    port.
  </para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="ips_to_show" type="int" default="10">
   <lire:description>
    <para>This parameter controls the number of receiving IP adresses to
     display in the report.
    </para>
   </lire:description>
  </lire:param>
  <lire:param name="ports_to_show" type="int" default="10">
   <lire:description>
    <para>This parameter controls the number of ports to display
     in the report.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>
    Volume per destination IP, per port, Top $ips_to_show,
    Top $ports_to_show ports
  </lire:title>
 </lire:display-spec>

 <lire:report-calc-spec>
  <lire:group sort="-vol_total" limit="$ports_to_show">
   <lire:field name="to_port"/>

   <lire:group sort="-vol_total" limit="$ips_to_show">
    <lire:field name="to_ip"/>

    <lire:sum name="vol_total" field="length" label="Volume"/>
    <lire:sum name="vol_ratio" field="length" ratio="table" label="% Total"/>
    <lire:sum name="vol_group_ratio" field="length" ratio="group" 
     label="% Port"/>
   </lire:group>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>

