Example #1
0
        public static CategorizeInfo operator -(CategorizeInfo lhs, CategorizeInfo rhs)
        {
            CategorizeInfo res = new CategorizeInfo();

            res.ApplicationLayer = lhs.ApplicationLayer.Difference(rhs.ApplicationLayer);
            res.TransportLayer   = lhs.TransportLayer.Difference(rhs.TransportLayer);
            res.NetworkLayer     = lhs.NetworkLayer.Difference(rhs.NetworkLayer);

            return(res);
        }
Example #2
0
 public StatisticsInfo(double bps, double pps)
 {
     Bps   = bps;
     Pps   = pps;
     cinfo = new CategorizeInfo
     {
         NetworkLayer     = new Dictionary <string, long>(),
         TransportLayer   = new Dictionary <string, long>(),
         ApplicationLayer = new Dictionary <string, long>()
     };
 }
Example #3
0
 public RangeMeta(RangeMeta other)
 {
     TotalLen = other.TotalLen;
     Cinfo    = other.Cinfo;
 }
Example #4
0
 public RangeMeta(MetaPacket pk)
 {
     TotalLen = pk.Length;
     Cinfo    = pk.Cinfo;
 }
Example #5
0
 public MetaPacket(Packet pk)
 {
     Length    = pk.Length * 8;
     Timestamp = pk.Timestamp;
     Cinfo     = SingleAnalyzer.SortPacket(pk);
 }