key_havesp
if (sp == NULL && key_havesp(IPSEC_DIR_OUTBOUND)) {
if (sp == NULL && key_havesp(dir)) {
int key_havesp(u_int);