Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Where is the Ping source in Linux?

Status
Not open for further replies.

verilog_crack

Full Member level 2
Full Member level 2
Joined
Sep 6, 2003
Messages
134
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
In the Sky
Activity points
992
Ping source

Hi
Do you know where is the Ping source in the Linux?
Or do you know which package includes it?
I searched and I only find ICMP.C but I didn't find anything about ping application.
Thanks for your help
 

Ping is implemented via ICMP echo request replay messages . In icmp.c file there are lines (2.4.16)
/*
* Handle ICMP_ECHO ("ping") requests.
*
* RFC 1122: 3.2.2.6 MUST have an echo server that answers ICMP echo requests.
* RFC 1122: 3.2.2.6 Data received in the ICMP_ECHO request MUST be included in the reply.
* RFC 1812: 4.3.3.6 SHOULD have a config option for silently ignoring echo requests, MUST have default=NOT.
* See also WRT handling of options once they are done and working.
*/
 

Re: Ping source

Hi Artem
I know Ping application uses ICMP.c
But I need the Ping application source that is in the /bin directory
If you know where I can find its source pls point me.
Regards
 

Re: Ping source

The ping command handling does not necessary ımplemented within
ICMP sources which work on kernel level .

Run the ping command and see what ıs the process name (executable) attached to execute vıa ps -al . If there ıs dedicated bınary to handle ping
you wıll get the executable name .

But it could be case that shell will handle rerouting . WHat does the man page for ping say ?
Unfortunately I do not have linux ınstalled to perform actions above .
 

Finally found - it is not part of the kernel
but package inetutils . The version İ have checked is under **broken link removed**
There you can find ping source.
 

Re: Ping source

Thanks for your attention
I understood that ping is part of iputils package and I download it too
In the man page it said we can download it from ftp://ftp.inr.ac.ru
But it needs password
And also I download your package and I see the sources
Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top