<?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="bytesperfromperport" charttype="bars">

 <lire:title>Top Bytes per From-IP per Port Report</lire:title>
 <lire:description>
  <para>
    This report lists the volume we were asked to receive per source IP per
    source 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 sending 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 source ports to display
     in the report.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>
    Volume per source IP, per source port, Top $ips_to_show IPs, 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="from_port"/>

   <lire:group sort="-vol_total" limit="$ips_to_show">
    <lire:field name="from_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>

