network packet analyzer (sniffer)

This is a discussion on network packet analyzer (sniffer) within the Linux Programming forums, part of the Platform Specific Boards category; 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 ...

  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 09:16 AM.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,590
    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,676
    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, 02: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, 09:53 PM
  4. My packet sniffer
    By Mad_guy in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-15-2007, 12:56 AM
  5. packet analyzer in c
    By althagafi in forum Networking/Device Communication
    Replies: 16
    Last Post: 08-06-2004, 04:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21