Partager via


2.2.1.2.49 MIB_IPSTATS

The MIB_IPSTATS structure stores information about the IP protocol running on a specific computer. This structure is used in MIB_OPAQUE_INFO (section 2.2.1.2.52) structure.

 typedef struct _MIB_IPSTATS {
   union {
     DWORD dwForwarding;
     MIB_IPSTATS_FORWARDING Forwarding;
   };
   DWORD dwDefaultTTL;
   DWORD dwInReceives;
   DWORD dwInHdrErrors;
   DWORD dwInAddrErrors;
   DWORD dwForwDatagrams;
   DWORD dwInUnknownProtos;
   DWORD dwInDiscards;
   DWORD dwInDelivers;
   DWORD dwOutRequests;
   DWORD dwRoutingDiscards;
   DWORD dwOutDiscards;
   DWORD dwOutNoRoutes;
   DWORD dwReasmTimeout;
   DWORD dwReasmReqds;
   DWORD dwReasmOks;
   DWORD dwReasmFails;
   DWORD dwFragOks;
   DWORD dwFragFails;
   DWORD dwFragCreates;
   DWORD dwNumIf;
   DWORD dwNumAddr;
   DWORD dwNumRoutes;
 } MIB_IPSTATS,
  *PMIB_IPSTATS;

dwForwarding: Specifies whether IP forwarding is enabled or disabled. This value MUST be 0xFFFFFFFF or one of the following values. If set to 0xFFFFFFFF, RMIBEntrySet does not change the current value of dwForwarding.

Value

Meaning

0x00000001

IP Forwarding enabled.

0x00000002

IP Forwarding not enabled.

Forwarding: Specifies whether IP forwarding is enabled or disabled.<36>

dwDefaultTTL: The default initial TTL for datagrams originating on a specific computer. This value MUST be 0xFFFFFFFF or a value less than or equal to 255.

dwInReceives: The number of datagrams received. This is a read-only field and MUST be ignored while writing.

dwInHdrErrors: The number of datagrams received that have header errors. This is a read-only field and MUST be ignored while writing.

dwInAddrErrors: The number of datagrams received that have address errors. This is a read-only field and MUST be ignored while writing.

dwForwDatagrams: The number of datagrams forwarded. This is a read-only field and MUST be ignored while writing.

dwInUnknownProtos: The number of datagrams received that have an unknown protocol. This is a read-only field and MUST be ignored while writing.

dwInDiscards: The number of received datagrams discarded. This is a read-only field and MUST be ignored while writing.

dwInDelivers: The number of received datagrams delivered. This is a read-only field and MUST be ignored while writing.

dwOutRequests: The number of outgoing datagrams that the IP is requested to transmit. This number does not include forwarded datagrams. This is a read-only field and MUST be ignored while writing.

dwRoutingDiscards: The number of outgoing datagrams discarded. This is a read-only field and MUST be ignored while writing.

dwOutDiscards: The number of transmitted datagrams to be discarded. This is a read-only field and MUST be ignored while writing.

dwOutNoRoutes: The number of datagrams for which this computer did not have a route to the destination IP address. These datagrams were discarded. This is a read-only field and MUST be ignored while writing.

dwReasmTimeout: The amount of time allowed for all pieces of a fragmented datagram to arrive. If all pieces do not arrive within this time, the datagram is discarded. This is a read-only field and MUST be ignored while writing.

dwReasmReqds: The number of datagrams that require reassembly. This is a read-only field and MUST be ignored while writing.

dwReasmOks: The number of datagrams that were successfully reassembled. This is a read-only field and MUST be ignored while writing.

dwReasmFails: The number of datagrams that cannot be reassembled. This is a read-only field and MUST be ignored while writing.

dwFragOks: The number of datagrams that were fragmented successfully. This is a read-only field and MUST be ignored while writing.

dwFragFails: The number of datagrams that have not been fragmented because the IP header specifies no fragmentation. These datagrams are discarded. This is a read-only field and MUST be ignored while writing.

dwFragCreates: The number of fragments created. This is a read-only field and MUST be ignored while writing.

dwNumIf: The number of interfaces. This is a read-only field and MUST be ignored while writing.

dwNumAddr: The number of IP addresses associated with this computer. This is a read-only field and MUST be ignored while writing.

dwNumRoutes: The number of routes in the IP routing table. This is a read-only field and MUST be ignored while writing.