 |
|
 |
could you tell me the steps to execute the packet sniffer,the requirements to run the code and can this work on a single laptop?
my email id is iamnam24@gmail.com
|
|
|
|
 |
|
 |
I've to calculate the bit rate of of traffic coming from a particular IP.
I've tried modifying the sample code for accomplishing it but am not able to arrive at a correct result.
It would be really nice if you could help me out..
Thanks in advance
Taran
|
|
|
|
 |
|
 |
Assuming that 'tlen' in structure ip_header gives the length of complete packet in bytes, I've added up the length of packet between the clicking of "Snort" button and "Stop Capturing" button, converted it into bits and divided it by time difference between the two events(used difference of GetTickCounts). But am not getting correct results.
As I've very limited knowledge in this field(I'm doing this kinda thing for the first time), I would really appreciate your inputs for the same
Thanks,
Taran
|
|
|
|
 |
|
 |
I'm using Visual Studio 2005 and get a compiling error when I'm compiling the project.
The errors are mostly saying that I have missing header files: windows, and winsock2.
Solutions?
|
|
|
|
 |
|
 |
I am using Visual Studio 2005 as well and I have not been able to get this to compile either. Have you made any headway?
|
|
|
|
 |
|
 |
"fatal error C1021: invalid preprocessor command 'using'
|
|
|
|
 |
|
 |
I appreciate your support...
I am using Visual C++ but once I compile the program I got error "fatal error C1021: invalid preprocessor command 'using'"...
I think I need to install some libraries or what ?
|
|
|
|
 |
|
 |
I appreciate your support...
I am using Visual C++ but once I compile the program I got error "fatal error C1021: invalid preprocessor command 'using'"...
I think I need to install some libraries or wahat ?
|
|
|
|
 |
|
 |
why are you using winpcap ? Windows comes with a ndis capture driver in the form of the Netmon capture APIs
|
|
|
|
 |
|
 |
Can you specify where can i find this API ?
|
|
|
|
 |
|
 |
First off, very nice seems to work well.
Just one question, Where you've done...
for(i=0;i<10;i++)
{
devname[i] = new char[50];
description[i] = new char[50];
devip[i] = new char[20];
devfilter[i] = new char[20];
}
and
for(i=0;i<10;i++)
{
free(devname[i]);
free(description[i]);
free(devip[i]);
free(devfilter[i]);
}
I Always thought you were suposed to delete what you new, and free() what you malloc().
|
|
|
|
 |
|
 |
Phil Tregellas wrote:
I Always thought you were suposed to delete what you new, and free() what you malloc().
You are correct. You shouldn't mix them up.
|
|
|
|
 |
|
 |
You were absolutely right of course. I made stupid mistake. The program actually never comes into the destructor of the class SZNYFERING because I didn't place "delete" operator in main program. Even when I put it there was an error of deleting one item two times. So now i'm uploading upgrading code. Thanks for your suggestion. I'm pleased to obtain more opinion about this program.
|
|
|
|
 |