how to access ICMP packets ?

Posted on 2004-11-15
Last Modified: 2013-12-23
Hi ,

I am developing a n/w application in which I need to access Internet control message protocol from a specified host. Any ideas/suggestions to proceed for the same ?

Question by:rohitdivas
    LVL 61

    Accepted Solution

    you need to catch and filter out  them before they approach system's TCP/IP stack and forge responses
    this is very system dependent and requires root privileges(post uname -a for exact tips)
    please also tell what is the problem you try to solve, meabe packet sniffing and root access are not necessary to solve the problems

    most likely you will look at sources of ping and tcpdump as good beginning
    LVL 51

    Expert Comment

    you need root access, then put the NIX in promiscous mode and simply read them
    LVL 61

    Expert Comment

    I guess asker lost interest in answers.
    Both answers are as simple as the Q asked.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    New My Cloud Pro Series - organize everything!

    With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now