Hi there,
I have a copy of Borland C++ , and I want to ask what do I need to write a network sniffer for windows env.
What other stuff i need to be installed on the machine such as libraries,...
Type: Posts; User: althagafi
Hi there,
I have a copy of Borland C++ , and I want to ask what do I need to write a network sniffer for windows env.
What other stuff i need to be installed on the machine such as libraries,...
Thanx to all.
I got it running fast.
Please, close this thread with high appreciation to all kinds of help.
Follow up:
Is there any way in c to check for a variable's value if it is in the enum { HTTP = 80, FTP = 21, TELNET = 23, POP3 = 110, SMTP = 25 }; ?
something like this :
if (service in enum)...
Hi there,
I'm trying to check on the value of two variables dst_port & src_port if any of them is 23 then service=the one who has that value.
so,let take this example1;
dst_port = 23;...
What about this line :
SRV_TYPE= (int)DST_PORT;
is it legal in C ?! and does c treat SRV_TYPE as an intger with the value of DST_PORT (0x50)? , which is 80 .
Hi there,
This is my code
int SRV_TYPE=0;
const int HTTP=80;
const int FTP=21;
const int TELNET=23;
const int POP3=110;
Hay,
I am still looking around for help. Thax alot for the good work from Sang-drax
Now, I have :
u_long SEQ_N // sequence # in a tcp header
I need to extract that from the tcp header having...
Ok, never mind about the prev. code, I have changed it to this code and is working almost fine, but I'm not getting any Proto Type except IP (0800) or something like 9000 that I have no clue of.
I...
Look at this code and tell me why is not giving me the right result:
int print_ether_hdr(const unsigned char *pkt_ptr,unsigned int length)
{
unsigned char DST_MAC[6];
...
============================================
To extract the Des. Mac , can I do it in this way?
Register u_char dts_mac[6];
dst_mac[6]=*p <<48; // pp is a pointer to the packet header.
then...
He is trying to be simple and clear in his representation of the fields.
I do think that this is an easy way ! hope you have something more easier or advantigous.
what's your take on that way ?...
Sang-drax, Thanx alot.
Well, your code is good enough to start with, but I need your help in explaining this source code that I got from the interent.
considering my main function call to the...
Hi there,
I am in a need of some network programming expereince, in particuar with packet sniffing.
I am working on building a Net. Analyzer and 50% is ready, I need some help in building...
Hi there,
I am in a need of some network programming expereince, in particuar with packet sniffing.
I am working on building a Net. Analyzer and 50% is ready, I need some help in building...