link: fix return code when exit path is clean

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
ping_test: some more fixes

how the hell did this thing ever worked? needs a rewrite

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>