Specify timeout in ping command for ipv4, only poll for ipv6

- ping6 does not support the timeout option