iputils: Fix aliasing violations

Change-Id: I2ba3e39455dd332dc799dd6429102a2f9f0768dd
Signed-off-by: zwliew <zhaoweiliew@gmail.com>