public ReassembledL7ConversationTests(ITestOutputHelper output) { this._output = output; this._sourceEndPoint = new IPEndPoint(1, 1); this._destinationEndPoint = new IPEndPoint(2, 2); this._ipProtocolType = IPProtocolType.TCP; this._upL7Flow = new L7Flow(); this._downL7Flow = new L7Flow(); this._l7PDUComparer = new L7PDUComparer(); }
private void CreateL7ConversationAndAdd(L7Flow upFlow, L7Flow downFlow, ref List <L7Conversation> l7Conversations) { if (l7Conversations == null) { l7Conversations = new List <L7Conversation>(1); } l7Conversations.Add(this.CreateL7Conversation(upFlow, downFlow)); upFlow?.SetPaired(); downFlow?.SetPaired(); }
private void ResetFlows() { this._upFlow = null; this._downFlow = null; }
private static L7Flow GetOrCreateFlow(ref L7Flow flow) => flow ?? (flow = new L7Flow());
protected L7Conversation CreateL7Conversation(L7Flow upFlow, L7Flow downFlow) => new L7Conversation(this.SourceEndPoint, this.DestinationEndPoint, this.ProtocolType, upFlow, downFlow);