pfkey_write
int pfkey_write(struct iked *, struct sadb_msg *, struct iovec *, int,
if ((ret = pfkey_write(env, &smsg, iov, iov_cnt, &data, &n)) != 0)
return (pfkey_write(env, &smsg, iov, iov_cnt, NULL, NULL));
return (pfkey_write(env, &smsg, iov, iov_cnt, NULL, NULL));
if (pfkey_write(env, &smsg, &iov, 1, NULL, NULL))
if (pfkey_write(env, &smsg, &iov, 1, NULL, NULL))
if (pfkey_write(env, &smsg, iov, iov_cnt, &reply, &rlen)) {
ret = pfkey_write(env, &smsg, iov, iov_cnt, NULL, NULL);
ret = pfkey_write(env, &smsg, iov, iov_cnt, NULL, NULL);
if ((ret = pfkey_write(env, &smsg, iov, iov_cnt, &data, &n)) != 0)
return pfkey_write((u_int8_t *)&msg, sizeof msg);
(void)pfkey_write(pmsg->buf, pmsg->len);