User`s guide

KwikNet Low Level Services
K
A
DAK
169
kn_netstats kn_netstats
Purpose Log KwikNet Network Statistics
Used by
n Task o ISP o Timer Procedure o Restart Procedure n Exit Procedure
Setup Prototype is in file KN_API.H.
#include "KN_LIB.H"
void kn_netstats(unsigned long statmask);
Description KwikNet will log network statistics which it has been gathering. The
information is formatted into log buffers and presented a line at a time
to your data logging function (see Chapter 1.6).
Statmask is a bit mask identifying the subset of network statistics
maintained by KwikNet which you wish to log. Statmask can be
created by ORing one or more of the bit mask constants to select the
particular statistics to be logged. The constants are defined in file
KN_API.H.
Statmask must be the logical OR of one or more of following masks:
KN_NS_NET General network statistics for all networks
KN_NS_DVC Device driver statistics for each network
KN_NS_MEM Memory usage dump
Treck network information dumps are identified as follows. You must
identify which Treck dumps you want by ORing one or more of the
following masks into parameter statmask.
KN_NS_ARP ARP table information
KN_NS_RTE Routing table information
KN_NS_TCP TCP socket summary
KN_NS_UDP UDP socket summary
KN_NS_IF Low level Treck interface summary
KN_NS_INFOLIST All of the available Treck dumps
To log all statistics, set
statmask to KN_NS_ALL.
Restriction Network statistics will not be available unless enabled in your KwikNet
Library. Edit your KwikNet Network Parameter File and selectively check
the Log option boxes on the Debug property page. Check the box labeled
"Monitor memory usage" to enable memory usage logs.
Returns Nothing
See Also
kn_dprintf(), kn_ifinfo(), kn_ifstate()