Thread: network packet analyzer (sniffer)

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    2

    network packet analyzer (sniffer)

    why wright #include<net inet/in.h> ??? why slash is used....???

    as like others #include<sys/types.h>

    #include<sys/socket.h>
    #include<arpa/inet.h>


    Is directory inside the sys and in type ???? plz make me understand..???
    Last edited by sauravjyotisrv; 03-15-2012 at 08:16 AM.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    socket.h is inside a folder called sys. on linux, the full path might be /usr/include/sys/socket.h. since only /usr/include is in the include path, you have to specify the subdirectory when including the file.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    2
    I need codes for storing a IP header, "FROM" and "TO" in a linklist ...

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Quote Originally Posted by sauravjyotisrv View Post
    I need codes for storing a IP header, "FROM" and "TO" in a linklist ...
    So write it. This is not a free code on demand service. If you actually get stuck, post your attempt and ask specific questions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ packet sniffer
    By Balta Romeo in forum C++ Programming
    Replies: 8
    Last Post: 07-18-2011, 01:27 PM
  2. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 09:51 PM
  3. packet sniffer
    By l2u in forum Networking/Device Communication
    Replies: 6
    Last Post: 09-20-2007, 08:53 PM
  4. My packet sniffer
    By Mad_guy in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-14-2007, 11:56 PM
  5. packet analyzer in c
    By althagafi in forum Networking/Device Communication
    Replies: 16
    Last Post: 08-06-2004, 03:35 PM