ping program to probe a remote system

This is a discussion on ping program to probe a remote system within the Linux Networking forums, part of the Linux Forums category; hi experts, i have a ping program written in c on linux platform. it is working fine but it has ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-15-2006
xoinki
 
Posts: n/a
Default ping program to probe a remote system

hi experts,
i have a ping program written in c on linux platform. it is working
fine but it has a bug.lets say i am probing a remote system with IP
192.168.15.1. every second ICMP datagram is sent. now if i deactivate
the NIC then the ping just stops and does not return any error message.
It works fine if i use unicast address and select works fine .. but if
i use a broadcast IP (192.168.15.255) then the ping just hangs up if
the destination system is suddenly shutdown or NIC is deactivated.
although ethereal flags an error message that the network is down, my
program is not able handle this condition. the code is too large to
post here (400+ lines).
please help me..
waitin for u r replies.
Xoinki

Reply With Quote
  #2 (permalink)  
Old 05-15-2006
Maurizio Loreti
 
Posts: n/a
Default Re: ping program to probe a remote system

answered in comp.unix.programmer

--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg
Reply With Quote
  #3 (permalink)  
Old 05-15-2006
Unruh
 
Posts: n/a
Default Re: ping program to probe a remote system

"xoinki" <xoinki@gmail.com> writes:

>hi experts,
>i have a ping program written in c on linux platform. it is working
>fine but it has a bug.lets say i am probing a remote system with IP
>192.168.15.1. every second ICMP datagram is sent. now if i deactivate
>the NIC then the ping just stops and does not return any error message.
>It works fine if i use unicast address and select works fine .. but if
>i use a broadcast IP (192.168.15.255) then the ping just hangs up if
>the destination system is suddenly shutdown or NIC is deactivated.
>although ethereal flags an error message that the network is down, my
>program is not able handle this condition. the code is too large to
>post here (400+ lines).
>please help me..


Why should we? There has been a ping program, free, for what must be
centuries now. You want to write yet another one. Why?
Also, what do you mean by "stop". Does the program return or does it just
stop displaying return messages. The latter is what you would expect.

>waitin for u r replies.
>Xoinki


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0