pfkey_sa_getspi
int pfkey_sa_getspi(struct iked *, uint8_t, struct iked_childsa *, uint32_t *);
if (pfkey_sa_getspi(env, satype, sa, spi) == -1)