All pastes #564865 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-13 19:27 UTC
rendered paste body
Index: dsniff/core/flow.py
===================================================================
--- dsniff/core/flow.py	(revision 8)
+++ dsniff/core/flow.py	(working copy)
@@ -50,7 +50,8 @@
 
 class Flow(object):
     __slots__ = ('client', 'server', 'p', 'stime', 'etime',
-                 'state', 'save', 'half', 'callbacks')
+                 'state', 'save', 'half', 'callbacks',
+                 'appid', 'appid_confidence')
     _Half = FlowHalf
 
     def __init__(self, ts, ip):
@@ -66,6 +67,8 @@
         self.stime = self.etime = ts
         self.callbacks = []
         self.save = {}
+        self.appid = self.appid_confidence = None
+
     src = property(lambda self: self.client.addr)
     dst = property(lambda self: self.server.addr)
     sport = property(lambda self: self.client.port)