M. Koehrer wrote:
> Hi all,
> 
> is it somehow possible to modify rtroute solicit that it returns a non-zero
> return code whenever the requested address is not reachable?
> This would allow to use rtroute solicit as a tool to verify the presence
> of a remote device?
> Currently, rtroute solicit returns 0 even if I use a non-existing addr 
> parameter.

rtroute solicit is asynchronous, means it doesn't wait for any reply. Of
course, one could enhance the core and the tool to gain a synchronous
behaviour, but the questions is if this is worth the effort.

Instead, you could check the existence of the remote device actively via
rtping or by watching the routing table. A "grep" for the IP on that
table (after a grace period or in a loop) may already help.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to