Esempio n. 1
0
        public Boolean Equals(L3Conversation other)
        {
            var e1 = Equals(this.IPAddresses[0], other.IPAddresses[0]);
            var e2 = Equals(this.IPAddresses[1], other.IPAddresses[1]);
            var e3 = Equals(this.IPAddresses[0], other.IPAddresses[1]);
            var e4 = Equals(this.IPAddresses[1], other.IPAddresses[0]);

            return((e1 && e2) || (e3 && e4));
        }
        public L4Conversation(IWindsorContainer container, IPProtocolType ipProtocol, L3Conversation l3Conversation, IPEndPoint sourceEndPoint, IPEndPoint destinationEndPoint, long l4FlowMTU)
        {
            this.InvestigationWindsorContainer = container;
            this.L4ProtocolType      = ipProtocol;
            this.L3Conversation      = l3Conversation;
            this.SourceEndPoint      = sourceEndPoint;
            this.DestinationEndPoint = destinationEndPoint;
            this.L4FlowMTU           = l4FlowMTU;
            this.Frames = new WeakConccurentCollection <PmFrameBase>();

            this.Captures                   = new WeakConccurentCollection <PmCaptureBase>();
            this.L7Conversations            = new WeakConccurentCollection <L7Conversation>();
            this.ConversationFlowStatistics = new WeakConccurentCollection <L4ConversationStatistics>();

            this.UpConversationStatistic   = new L4ConversationStatistics(DaRFlowDirection.up, this);
            this.DownConversationStatistic = new L4ConversationStatistics(DaRFlowDirection.down, this);
        }
Esempio n. 3
0
 protected L3Conversation(IWindsorContainer container, L3Conversation conversationKey) : this(container, conversationKey.IPAddresses[0], conversationKey.IPAddresses[1])
 {
 }
Esempio n. 4
0
 public L3ConversationStatistics(DaRFlowDirection flowDirection, L3Conversation conversation) : base(flowDirection, conversation)
 {
     this.L3Conversation      = conversation;
     this.L3ConversationRefId = conversation.Id;
 }