Re: [riot-devel] Easy ping

2016-09-23 Thread Baptiste Clenet
Thanks Martine! I do need timeout, otherwise I won't know if the node is connected. Sock is in PR so I prefer not to use it for the moment 2016-09-23 20:37 GMT+02:00 Martine Lenders : > Hi Baptiste, > that depends on what you mean by reachable. Even for ICMPv6 ping (which

Re: [riot-devel] Easy ping

2016-09-23 Thread Martine Lenders
Hi Baptiste, that depends on what you mean by reachable. Even for ICMPv6 ping (which is used with the shell ping command) you need some "server", that handles the request and issues a reply. If that server is not present the node will not reply to pings, even if it is reachable in the sense that

Re: [riot-devel] Easy ping

2016-09-23 Thread Marc Sissom
Then setup a task that runs ping. Marc Sissom Krypton Solutions -Original Message- From: devel [mailto:devel-boun...@riot-os.org] On Behalf Of Baptiste Clenet Sent: Friday, September 23, 2016 11:36 AM To: RIOT OS kernel developers <devel@riot-os.org> Subject: Re: [riot-devel] Eas

Re: [riot-devel] Easy ping

2016-09-23 Thread Baptiste Clenet
on Solutions > > -Original Message- > From: devel [mailto:devel-boun...@riot-os.org] On Behalf Of Baptiste Clenet > Sent: Friday, September 23, 2016 11:21 AM > To: RIOT OS kernel developers <devel@riot-os.org> > Subject: Re: [riot-devel] Easy ping > > Yes but it

Re: [riot-devel] Easy ping

2016-09-23 Thread Marc Sissom
- From: devel [mailto:devel-boun...@riot-os.org] On Behalf Of Baptiste Clenet Sent: Friday, September 23, 2016 11:21 AM To: RIOT OS kernel developers <devel@riot-os.org> Subject: Re: [riot-devel] Easy ping Yes but it's not as easy as I want (shell command) Tell me the easiest possible fu

Re: [riot-devel] Easy ping

2016-09-23 Thread Baptiste Clenet
Yes but it's not as easy as I want (shell command) Tell me the easiest possible function to know if an address is reachable or not :-) 2016-09-23 17:56 GMT+02:00 Martine Lenders : > Hi Baptiste, > have you had a look at the implementation of the ping shell command? >

Re: [riot-devel] Easy ping

2016-09-23 Thread Martine Lenders
Hi Baptiste, have you had a look at the implementation of the ping shell command? Another way would be to (re-)implement ping using conn_ip (or sock if merged). In that case, if you want it relly easy you don't even have to implement ICMPv6 ping but can do whatever you want ;-). Cheers,

[riot-devel] Easy ping

2016-09-23 Thread Baptiste Clenet
Hi, How can I easily ping a board by software (without using shell) so I ping( IPV6_address) and I get -1 for error (not reachable) or 0 for success? Cheers, -- Baptiste ___ devel mailing list devel@riot-os.org