Both are identical, let's create ipv6_chk_prefix() and use it in both places.
Attach a file by drag & drop or click to upload