[PATCH v1 bpf-next 3/8] selftests/bpf: Factor out cmp_addr