• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 486
  • Last Modified:

Want to get ICMP header data on Linux

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?
0
jl66
Asked:
jl66
  • 2
  • 2
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
Look here: http://www.networksorcery.com/enp/protocol/icmp.htm  There isn't much to it.

0
 
jl66Author Commented:
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???
0
 
Dave BaldwinFixer of ProblemsCommented:
0
 
jl66Author Commented:
Thanks a lot.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now