Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Added handy debugging for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
codebox committed Nov 27, 2011
1 parent bad5640 commit 3b1d0af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions capture/src/net.c
Expand Up @@ -174,6 +174,16 @@ Contains platform-specific code for obtaining the network stats that we need.
#include <ws2tcpip.h>
#include <iphlpapi.h>

/*static void dumpRow(MIB_IFROW* pIfRow){
logMsg(LOG_ERR, "%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d",
time(NULL),
pIfRow->dwIndex, pIfRow->dwType, pIfRow->dwMtu, pIfRow->dwSpeed,
pIfRow->dwPhysAddrLen, pIfRow->dwAdminStatus, pIfRow->dwOperStatus, pIfRow->dwLastChange,
pIfRow->dwInOctets, pIfRow->dwInUcastPkts, pIfRow->dwInNUcastPkts, pIfRow->dwInDiscards,
pIfRow->dwInErrors, pIfRow->dwInUnknownProtos, pIfRow->dwOutOctets, pIfRow->dwOutUcastPkts,
pIfRow->dwOutNUcastPkts, pIfRow->dwOutDiscards, pIfRow->dwOutErrors, pIfRow->dwOutQLen,
pIfRow->dwDescrLen);
}*/
struct Data* getData(){
MIB_IFTABLE* pIfTable = (MIB_IFTABLE *) malloc(sizeof (MIB_IFTABLE));
unsigned long dwSize = sizeof (MIB_IFTABLE);
Expand Down Expand Up @@ -224,6 +234,7 @@ Contains platform-specific code for obtaining the network stats that we need.
}

if (isDuplicate == FALSE){
//dumpRow(pIfRow);
appendData(&firstData, thisData);
} else {
freeData(thisData);
Expand Down

0 comments on commit 3b1d0af

Please sign in to comment.