#!/usr/local/bin/python

import trafstq

sqlexpr="select dst,sum(bytes),srcport,proto from dump where dst like '192.168.1.%' group by srcport,dst,proto order by dst,srcport"

print trafstq.show_in_html_table( sqlexpr,
 'IP address:ip,SUM of bytes:bytes,Service:port,PROTOCOL:proto' )
