コード例 #1
0
        public void ParsingTestName()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "TCP");
        }
コード例 #2
0
        public void ParsingTestSourceIp()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "fe80::d1ec:8061:eeaf:3c78");
        }
コード例 #3
0
        public void ParsingTestSource()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "-");
        }
コード例 #4
0
        public void ParsingTestTimeDestination()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "FFFFFFFFFFFF");
        }
コード例 #5
0
        public void ParsingTestName()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "ICMPv6");
        }
コード例 #6
0
        public void ParsingTestTimeLen()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "42");
        }
コード例 #7
0
        public void ParsingTestTimeDestinationIp()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "169.254.169.254");
        }
コード例 #8
0
        public void ParsingTestTimeDestination()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "443");
        }
コード例 #9
0
        public void ParsingTestTime()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:33 22");
        }
コード例 #10
0
        public void ParsingTestTimeDestinationIp()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "173.194.222.100");
        }
コード例 #11
0
        public void ParsingTestSource()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "49842");
        }
コード例 #12
0
        public void ParsingTestSourceIp()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "192.168.8.100");
        }
コード例 #13
0
        public void ParsingTestTimeLen()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "62");
        }
コード例 #14
0
        public void ParsingTestInformation()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(7), "-");
        }
コード例 #15
0
        public void ParsingTestTime()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:32 160");
        }
コード例 #16
0
        public void ParsingTestName()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "HTTP");
        }
コード例 #17
0
        public void ParsingTestName()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(0), "Ethernet");
        }
コード例 #18
0
        public void ParsingTestInformation()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(7), "GET /lib/jquery.qtip.css HTTP/1.1\r");
        }
コード例 #19
0
        public void ParsingTestSourceIp()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "192.168.8.100");
        }
コード例 #20
0
        public void ParsingTestTimeLen()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "602");
        }
コード例 #21
0
        public void ParsingTestSource()
        {
            var     ethernet = new EthernetParser();
            PPacket pack     = ethernet.Parsing(ethernetPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "0C5B8F279A64");
        }
コード例 #22
0
        public void ParsingTestSourceIp()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(3), "192.168.8.100");
        }
コード例 #23
0
        public void ParsingTestTime()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:32 660");
        }
コード例 #24
0
        public void ParsingTestTimeDestinationIp()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "192.168.8.1");
        }
コード例 #25
0
        public void ParsingTestTimeLen()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(2), "86");
        }
コード例 #26
0
        public void ParsingTestSource()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(5), "49826");
        }
コード例 #27
0
        public void ParsingTestTimeDestinationIp()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(4), "fe80::76c1:4fff:fefe:1b89");
        }
コード例 #28
0
        public void ParsingTestTimeDestination()
        {
            var     http = new HTTPParser();
            PPacket pack = http.Parsing(httpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "80");
        }
コード例 #29
0
        public void ParsingTestTimeDestination()
        {
            var     icmp = new ICMPParser();
            PPacket pack = icmp.Parsing(icmpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(6), "-");
        }
コード例 #30
0
        public void ParsingTestTime()
        {
            var     tcp  = new TCPParser();
            PPacket pack = tcp.Parsing(tcpPacket, time, len);

            Assert.AreEqual(pack.GetPacket(1), "20:18:32 170");
        }