Want to get ICMP header data on Linux

Posted on 2011-10-19
Last Modified: 2012-05-12
How to get the ICMP header data? I guess it may involve in reading data from raw socket with c? How to do that? Could any gurus shed some light on it or point to me some links on it?
Question by:jl66
    LVL 82

    Accepted Solution

    Look here:  There isn't much to it.


    Author Comment

    Thanks a lot for your update. I read the link before. That is the 2nd step. My question can be divided into two parts:
    1) need to know how to read the ICMP data out from certain socket with c on Linux
    2) process the data

    Could anyone point me some links or offer some code snippets in c/c++ on how to read the data???
    LVL 82

    Assisted Solution

    by:Dave Baldwin

    Author Closing Comment

    Thanks a lot.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
    Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
    The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now