morel
July 3rd, 2007, 01:03 PM
Hi,
I need to get a flag, and protocole type in tram TCP, for that i would use WinPcap4.0 but unfortunatly it doesn't work ' i have installed Wpcap.exe ', in first i try to obtain a device list:
#pragma once
#include "pcap.h"
namespace tram {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
.
.
.
.
pcap_if_t *alldevs;
pcap_if_t *d;
int i=0;
for(d= alldevs; d != NULL; d= d->next)
{
printf("%d. %s", ++i, d->name);
if (d->description)
printf(" (%s)\n", d->description);
else
printf(" (No description available)\n");
}
if (i == 0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
return;
}
Please help me de resolve this great broblem,
Thank you verry mutch
I need to get a flag, and protocole type in tram TCP, for that i would use WinPcap4.0 but unfortunatly it doesn't work ' i have installed Wpcap.exe ', in first i try to obtain a device list:
#pragma once
#include "pcap.h"
namespace tram {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
.
.
.
.
pcap_if_t *alldevs;
pcap_if_t *d;
int i=0;
for(d= alldevs; d != NULL; d= d->next)
{
printf("%d. %s", ++i, d->name);
if (d->description)
printf(" (%s)\n", d->description);
else
printf(" (No description available)\n");
}
if (i == 0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
return;
}
Please help me de resolve this great broblem,
Thank you verry mutch