lib/packet/ipv6: fix the bug of empty buf (payload).