ping: Fix aliasing violations
Signed-off-by: Kristofer Ard <kristoferard@gmail.com>