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();
 }
示例#2
0
        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();
        }
示例#3
0
 private void ResetFlows()
 {
     this._upFlow   = null;
     this._downFlow = null;
 }
示例#4
0
 private static L7Flow GetOrCreateFlow(ref L7Flow flow) => flow ?? (flow = new L7Flow());
示例#5
0
 protected L7Conversation CreateL7Conversation(L7Flow upFlow, L7Flow downFlow) =>
 new L7Conversation(this.SourceEndPoint, this.DestinationEndPoint, this.ProtocolType, upFlow, downFlow);