public void Icmpv6Parsing()
        {
            string fileName = GetTestFilePath();

            FileUtil.NormalizeLineEndings("NetworkFiles/snmp6", fileName);
            Icmpv6StatisticsTable table = StringParsingHelpers.ParseIcmpv6FromSnmp6File(fileName);

            Assert.Equal(1L, table.InMsgs);
            Assert.Equal(2L, table.InErrors);
            Assert.Equal(3L, table.OutMsgs);
            Assert.Equal(4L, table.OutErrors);
            Assert.Equal(6L, table.InDestUnreachs);
            Assert.Equal(7L, table.InPktTooBigs);
            Assert.Equal(8L, table.InTimeExcds);
            Assert.Equal(9L, table.InParmProblems);
            Assert.Equal(10L, table.InEchos);
            Assert.Equal(11L, table.InEchoReplies);
            Assert.Equal(12L, table.InGroupMembQueries);
            Assert.Equal(13L, table.InGroupMembResponses);
            Assert.Equal(14L, table.InGroupMembReductions);
            Assert.Equal(15L, table.InRouterSolicits);
            Assert.Equal(16L, table.InRouterAdvertisements);
            Assert.Equal(17L, table.InNeighborSolicits);
            Assert.Equal(18L, table.InNeighborAdvertisements);
            Assert.Equal(19L, table.InRedirects);
            Assert.Equal(21L, table.OutDestUnreachs);
            Assert.Equal(22L, table.OutPktTooBigs);
            Assert.Equal(23L, table.OutTimeExcds);
            Assert.Equal(24L, table.OutParmProblems);
            Assert.Equal(25L, table.OutEchos);
            Assert.Equal(26L, table.OutEchoReplies);
            Assert.Equal(27L, table.OutInGroupMembQueries);
            Assert.Equal(28L, table.OutGroupMembResponses);
            Assert.Equal(29L, table.OutGroupMembReductions);
            Assert.Equal(30L, table.OutRouterSolicits);
            Assert.Equal(31L, table.OutRouterAdvertisements);
            Assert.Equal(32L, table.OutNeighborSolicits);
            Assert.Equal(33L, table.OutNeighborAdvertisements);
            Assert.Equal(34L, table.OutRedirects);
        }
        public void Icmpv6Parsing()
        {
            string fileName = GetTestFilePath();

            FileUtil.NormalizeLineEndings("snmp6", fileName);
            Icmpv6StatisticsTable table = StringParsingHelpers.ParseIcmpv6FromSnmp6File(fileName);

            Assert.Equal(1, table.InMsgs);
            Assert.Equal(2, table.InErrors);
            Assert.Equal(3, table.OutMsgs);
            Assert.Equal(4, table.OutErrors);
            Assert.Equal(6, table.InDestUnreachs);
            Assert.Equal(7, table.InPktTooBigs);
            Assert.Equal(8, table.InTimeExcds);
            Assert.Equal(9, table.InParmProblems);
            Assert.Equal(10, table.InEchos);
            Assert.Equal(11, table.InEchoReplies);
            Assert.Equal(12, table.InGroupMembQueries);
            Assert.Equal(13, table.InGroupMembResponses);
            Assert.Equal(14, table.InGroupMembReductions);
            Assert.Equal(15, table.InRouterSolicits);
            Assert.Equal(16, table.InRouterAdvertisements);
            Assert.Equal(17, table.InNeighborSolicits);
            Assert.Equal(18, table.InNeighborAdvertisements);
            Assert.Equal(19, table.InRedirects);
            Assert.Equal(21, table.OutDestUnreachs);
            Assert.Equal(22, table.OutPktTooBigs);
            Assert.Equal(23, table.OutTimeExcds);
            Assert.Equal(24, table.OutParmProblems);
            Assert.Equal(25, table.OutEchos);
            Assert.Equal(26, table.OutEchoReplies);
            Assert.Equal(27, table.OutInGroupMembQueries);
            Assert.Equal(28, table.OutGroupMembResponses);
            Assert.Equal(29, table.OutGroupMembReductions);
            Assert.Equal(30, table.OutRouterSolicits);
            Assert.Equal(31, table.OutRouterAdvertisements);
            Assert.Equal(32, table.OutNeighborSolicits);
            Assert.Equal(33, table.OutNeighborAdvertisements);
            Assert.Equal(34, table.OutRedirects);
        }
示例#3
0
 public LinuxIcmpV6Statistics()
 {
     _table = StringParsingHelpers.ParseIcmpv6FromSnmp6File(NetworkFiles.SnmpV6StatsFile);
 }
示例#4
0
 public LinuxIcmpV6Statistics()
 {
     _table = StringParsingHelpers.ParseIcmpv6FromSnmp6File(NetworkFiles.SnmpV6StatsFile);
 }