standard_flow *current;
struct in_addr src, dst;
char sip[22], dip[22];
+ key_flow largest_flow_info;
/* Reset statistics. */
table->common->num_flows = 0;
if (current->rate > maxflowrate) {
maxflowrate = current->rate;
+ largest_flow_info.source_ip = current->source_ip;
+ largest_flow_info.dest_ip = current->dest_ip;
+ largest_flow_info.source_port = current->source_port;
+ largest_flow_info.dest_port = current->dest_port;
+ largest_flow_info.protocol = current->protocol;
}
if (current->rate > 51200) {
printlog(LOG_DEBUG, "FLOW:--\n--\n");
table->common->max_flow_rate = maxflowrate;
+ table->common->max_flow_rate_flow_hash = table->hash_function(&largest_flow_info);
}