Unix: add ping6 (closes #821)
Unix: Merge code of ping and ping6.