Fix compile error in ipv6 ping.c

Change-Id: I5709af76d4aaf7586a47c52ae6c66f64d0a85cfc