MIB_IPSTATS

The MIB_IPSTATS structure stores information about the IP protocol running on a particular computer.

typedef struct _MIB_IPSTATS {
  DWORD   dwForwarding;       // IP forwarding enabled or disabled
  DWORD   dwDefaultTTL;       // default time-to-live
  DWORD   dwInReceives;       // datagrams received
  DWORD   dwInHdrErrors;      // received header errors
  DWORD   dwInAddrErrors;     // received address errors
  DWORD   dwForwDatagrams;    // datagrams forwarded
  DWORD   dwInUnknownProtos;  // datagrams with unknown protocol
  DWORD   dwInDiscards;       // received datagrams discarded
  DWORD   dwInDelivers;       // received datagrams delivered
  DWORD   dwOutRequests;      //
  DWORD   dwRoutingDiscards;  //
  DWORD   dwOutDiscards;      // sent datagrams discarded
  DWORD   dwOutNoRoutes;      // datagrams for which no route exists
  DWORD   dwReasmTimeout;     // datagrams for which all 
                              // frags did not arrive
  DWORD   dwReasmReqds;       // datagrams requiring reassembly
  DWORD   dwReasmOks;         // successful reassemblies
  DWORD   dwReasmFails;       // failed reassemblies
  DWORD   dwFragOks;          // successful fragmentations
  DWORD   dwFragFails;        // failed fragmentations
  DWORD   dwFragCreates;      // datagrams fragmented
  DWORD   dwNumIf;            // number of interfaces on computer
  DWORD   dwNumAddr;          // number of IP address on computer
  DWORD   dwNumRoutes;        // number of routes in routing table
} MIB_IPSTATS, *PMIB_IPSTATS;

Members

dwForwarding
Specifies whether IP forwarding is enabled or disabled.
dwDefaultTTL
Specifies the default initial time to live (TTL) for datagrams originating on a particular computer.
dwInReceives
Specifies the number of datagrams received.
dwInHdrErrors
Specifies the number of datagrams received that have header errors.
dwInAddrErrors
Specifies the number of datagrams received that have address errors.
dwForwDatagrams
Specifies the number of datagrams forwarded.
dwInUnknownProtos
Specifies the number of datagrams received that have an unknown protocol.
dwInDiscards
Specifies the number of received datagrams discarded.
dwInDelivers
Specifies the number of received datagrams delivered.
dwOutRequests
Specifies the number of outgoing datagrams that IP is requested to transmit. This number does not include forwarded datagrams.
dwRoutingDiscards
Specifies the number of outgoing datagrams discarded.
dwOutDiscards
Specifies the number of transmitted datagrams discarded.
dwOutNoRoutes
Specifies the number of datagrams for which this computer did not have a route to the destination IP address. These datagrams were discarded.
dwReasmTimeout
Specifies 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.
dwReasmReqds
Specifies the number of datagrams that require reassembly.
dwReasmOks
Specifies the number of datagrams that were successfully reassembled.
dwReasmFails
Specifies the number of datagrams that cannot be reassembled.
dwFragOks
Specifies the number of datagrams that were fragmented successfully.
dwFragFails
Specifies the number of datagrams that have not been fragmented because the IP header specifies no fragmentation. These datagrams are discarded.
dwFragCreates
Specifies the number of fragments created.
dwNumIf
Specifies the number of interfaces.
dwNumAddr
Specifies the number of IP addresses associated with this computer.
dwNumRoutes
Specifies the number of routes in the IP routing table.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iprtrmib.h.