Use the icmp6_hdr function to get ICMPv6 header