summaryState = __database__.getFinalStateFromFlags(state, pkts)
// Get the previous data about this key
prev_data = self.getDataFromProfileTW(profileid, twid, type_host_key, summaryState, proto, role, "IPs")
self.print("Prev data : {}".format(prev_data,1,0))
try:
innerdata = prev_data[str(ip_as_obj)]
//self.outputqueue.put("03|database|[DB]: Adding for port {}. PRE Data: {}".format(dport, innerdata))
After Change
pkts = columns["pkts"]
spkts = columns["spkts"]
state = columns["state"]
proto = columns["proto"].upper()
daddr = columns["daddr"]
saddr = columns["saddr"]
// Depending if the traffic is going out or not, we are Client or Server