Skip to content

Commit b759a4b

Browse files
committed
blacklist - rename Idea fields
InPacketsCount -> InPacketCount OutPacketsCount -> OutPacketCount
1 parent 079d6d2 commit b759a4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

report2idea/blacklist/blacklist2idea.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ def set_common_ip_fields(self):
9090
if self.rec["src_sent_flows"]:
9191
self.src_addr["OutFlowCount"] = self.rec["src_sent_flows"]
9292
self.src_addr["OutByteCount"] = self.rec["src_sent_bytes"]
93-
self.src_addr["OutPacketsCount"] = self.rec["src_sent_packets"]
93+
self.src_addr["OutPacketCount"] = self.rec["src_sent_packets"]
9494
if self.rec["tgt_sent_flows"]:
9595
self.src_addr["InFlowCount"] = self.rec["tgt_sent_flows"]
9696
self.src_addr["InByteCount"] = self.rec["tgt_sent_bytes"]
97-
self.src_addr["InPacketsCount"] = self.rec["tgt_sent_packets"]
97+
self.src_addr["InPacketCount"] = self.rec["tgt_sent_packets"]
9898
self.idea["Source"].append(self.tgt_addr)
9999
else:
100100
self.idea["Description"] = "Blacklisted IP tried to communicate with host (with no response)"
@@ -126,7 +126,7 @@ def set_common_url_fields(self):
126126
if self.rec["tgt_sent_flows"]:
127127
self.src_addr["InFlowCount"] = self.rec["tgt_sent_flows"]
128128
self.src_addr["InByteCount"] = self.rec["tgt_sent_bytes"]
129-
self.src_addr["InPacketsCount"] = self.rec["tgt_sent_packets"]
129+
self.src_addr["InPacketCount"] = self.rec["tgt_sent_packets"]
130130
self.idea["Source"].append(self.tgt_addr)
131131
else:
132132
self.idea["Description"] = "Blacklisted IP tried to communicate with host (with no response)"

0 commit comments

Comments
 (0)