public static IcmpV6Statistics CreateIcmpV6Statistics() { LinuxIcmpV6Statistics stats = new LinuxIcmpV6Statistics(); string fileContents = File.ReadAllText(NetworkFiles.SnmpV6StatsFile); RowConfigReader reader = new RowConfigReader(fileContents); stats._inMsgs = reader.GetNextValueAsInt32("Icmp6InMsgs"); stats._inErrors = reader.GetNextValueAsInt32("Icmp6InErrors"); stats._outMsgs = reader.GetNextValueAsInt32("Icmp6OutMsgs"); stats._outErrors = reader.GetNextValueAsInt32("Icmp6OutErrors"); stats._inDestUnreachs = reader.GetNextValueAsInt32("Icmp6InDestUnreachs"); stats._inPktTooBigs = reader.GetNextValueAsInt32("Icmp6InPktTooBigs"); stats._inTimeExcds = reader.GetNextValueAsInt32("Icmp6InTimeExcds"); stats._inParmProblems = reader.GetNextValueAsInt32("Icmp6InParmProblems"); stats._inEchos = reader.GetNextValueAsInt32("Icmp6InEchos"); stats._inEchoReplies = reader.GetNextValueAsInt32("Icmp6InEchoReplies"); stats._inGroupMembQueries = reader.GetNextValueAsInt32("Icmp6InGroupMembQueries"); stats._inGroupMembResponses = reader.GetNextValueAsInt32("Icmp6InGroupMembResponses"); stats._inGroupMembReductions = reader.GetNextValueAsInt32("Icmp6InGroupMembReductions"); stats._inRouterSolicits = reader.GetNextValueAsInt32("Icmp6InRouterSolicits"); stats._inRouterAdvertisements = reader.GetNextValueAsInt32("Icmp6InRouterAdvertisements"); stats._inNeighborSolicits = reader.GetNextValueAsInt32("Icmp6InNeighborSolicits"); stats._inNeighborAdvertisements = reader.GetNextValueAsInt32("Icmp6InNeighborAdvertisements"); stats._inRedirects = reader.GetNextValueAsInt32("Icmp6InRedirects"); stats._outDestUnreachs = reader.GetNextValueAsInt32("Icmp6OutDestUnreachs"); stats._outPktTooBigs = reader.GetNextValueAsInt32("Icmp6OutPktTooBigs"); stats._outTimeExcds = reader.GetNextValueAsInt32("Icmp6OutTimeExcds"); stats._outParmProblems = reader.GetNextValueAsInt32("Icmp6OutParmProblems"); stats._outEchos = reader.GetNextValueAsInt32("Icmp6OutEchos"); stats._outEchoReplies = reader.GetNextValueAsInt32("Icmp6OutEchoReplies"); stats._outInGroupMembQueries = reader.GetNextValueAsInt32("Icmp6OutGroupMembQueries"); stats._outGroupMembResponses = reader.GetNextValueAsInt32("Icmp6OutGroupMembResponses"); stats._outGroupMembReductions = reader.GetNextValueAsInt32("Icmp6OutGroupMembReductions"); stats._outRouterSolicits = reader.GetNextValueAsInt32("Icmp6OutRouterSolicits"); stats._outRouterAdvertisements = reader.GetNextValueAsInt32("Icmp6OutRouterAdvertisements"); stats._outNeighborSolicits = reader.GetNextValueAsInt32("Icmp6OutNeighborSolicits"); stats._outNeighborAdvertisements = reader.GetNextValueAsInt32("Icmp6OutNeighborAdvertisements"); stats._outRedirects = reader.GetNextValueAsInt32("Icmp6OutRedirects"); return stats; }
public static IcmpV6Statistics CreateIcmpV6Statistics() { LinuxIcmpV6Statistics stats = new LinuxIcmpV6Statistics(); string fileContents = File.ReadAllText(NetworkFiles.SnmpV6StatsFile); RowConfigReader reader = new RowConfigReader(fileContents); stats._inMsgs = reader.GetNextValueAsInt32("Icmp6InMsgs"); stats._inErrors = reader.GetNextValueAsInt32("Icmp6InErrors"); stats._outMsgs = reader.GetNextValueAsInt32("Icmp6OutMsgs"); stats._outErrors = reader.GetNextValueAsInt32("Icmp6OutErrors"); stats._inDestUnreachs = reader.GetNextValueAsInt32("Icmp6InDestUnreachs"); stats._inPktTooBigs = reader.GetNextValueAsInt32("Icmp6InPktTooBigs"); stats._inTimeExcds = reader.GetNextValueAsInt32("Icmp6InTimeExcds"); stats._inParmProblems = reader.GetNextValueAsInt32("Icmp6InParmProblems"); stats._inEchos = reader.GetNextValueAsInt32("Icmp6InEchos"); stats._inEchoReplies = reader.GetNextValueAsInt32("Icmp6InEchoReplies"); stats._inGroupMembQueries = reader.GetNextValueAsInt32("Icmp6InGroupMembQueries"); stats._inGroupMembResponses = reader.GetNextValueAsInt32("Icmp6InGroupMembResponses"); stats._inGroupMembReductions = reader.GetNextValueAsInt32("Icmp6InGroupMembReductions"); stats._inRouterSolicits = reader.GetNextValueAsInt32("Icmp6InRouterSolicits"); stats._inRouterAdvertisements = reader.GetNextValueAsInt32("Icmp6InRouterAdvertisements"); stats._inNeighborSolicits = reader.GetNextValueAsInt32("Icmp6InNeighborSolicits"); stats._inNeighborAdvertisements = reader.GetNextValueAsInt32("Icmp6InNeighborAdvertisements"); stats._inRedirects = reader.GetNextValueAsInt32("Icmp6InRedirects"); stats._outDestUnreachs = reader.GetNextValueAsInt32("Icmp6OutDestUnreachs"); stats._outPktTooBigs = reader.GetNextValueAsInt32("Icmp6OutPktTooBigs"); stats._outTimeExcds = reader.GetNextValueAsInt32("Icmp6OutTimeExcds"); stats._outParmProblems = reader.GetNextValueAsInt32("Icmp6OutParmProblems"); stats._outEchos = reader.GetNextValueAsInt32("Icmp6OutEchos"); stats._outEchoReplies = reader.GetNextValueAsInt32("Icmp6OutEchoReplies"); stats._outInGroupMembQueries = reader.GetNextValueAsInt32("Icmp6OutGroupMembQueries"); stats._outGroupMembResponses = reader.GetNextValueAsInt32("Icmp6OutGroupMembResponses"); stats._outGroupMembReductions = reader.GetNextValueAsInt32("Icmp6OutGroupMembReductions"); stats._outRouterSolicits = reader.GetNextValueAsInt32("Icmp6OutRouterSolicits"); stats._outRouterAdvertisements = reader.GetNextValueAsInt32("Icmp6OutRouterAdvertisements"); stats._outNeighborSolicits = reader.GetNextValueAsInt32("Icmp6OutNeighborSolicits"); stats._outNeighborAdvertisements = reader.GetNextValueAsInt32("Icmp6OutNeighborAdvertisements"); stats._outRedirects = reader.GetNextValueAsInt32("Icmp6OutRedirects"); return(stats); }
public override IcmpV6Statistics GetIcmpV6Statistics() { return(LinuxIcmpV6Statistics.CreateIcmpV6Statistics()); }