Search:

Type: Posts; User: althagafi

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,049

    Borlan C++ 3 and Network Programming

    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,...
  2. Thanx to all. I got it running fast. Please,...

    Thanx to all.
    I got it running fast.

    Please, close this thread with high appreciation to all kinds of help.
  3. Follow up: Is there any way in c to check for a...

    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)...
  4. Replies
    3
    Views
    1,394

    Des. Port & Src. Port Verification Method!

    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;...
  5. What about this line : SRV_TYPE= (int)DST_PORT;...

    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 .
  6. Error msg regarding the Switch loop, What's wrong in my code?

    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;
  7. Replies
    16
    Views
    8,279

    Hay, I am still looking around for help. Thax...

    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...
  8. Replies
    16
    Views
    8,279

    Ok, never mind about the prev. code, I have...

    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...
  9. Replies
    16
    Views
    8,279

    Look at this code and tell me why is not giving...

    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];
    ...
  10. Replies
    16
    Views
    8,279

    ============================================ To...

    ============================================
    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...
  11. Replies
    16
    Views
    8,279

    He is trying to be simple and clear in his...

    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 ?...
  12. Replies
    16
    Views
    8,279

    Sang-drax, Thanx alot. Well, your code is...

    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...
  13. Replies
    16
    Views
    8,279

    packet analyzer in c

    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...
  14. Replies
    1
    Views
    1,749

    packet analyzer in c

    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...
Results 1 to 14 of 14