Home | History | Annotate | Download | only in racoon

Lines Matching refs:newmsg

2730 	struct sadb_msg *newmsg;
2734 newmsg = racoon_calloc(1, len);
2735 if (newmsg == NULL) {
2741 memset(newmsg, 0, len);
2742 newmsg->sadb_msg_version = PF_KEY_V2;
2743 newmsg->sadb_msg_type = SADB_ACQUIRE;
2744 newmsg->sadb_msg_errno = ENOENT; /* XXX */
2745 newmsg->sadb_msg_satype = iph2->satype;
2746 newmsg->sadb_msg_len = PFKEY_UNIT64(len);
2747 newmsg->sadb_msg_reserved = 0;
2748 newmsg->sadb_msg_seq = iph2->seq;
2749 newmsg->sadb_msg_pid = (u_int32_t)getpid();
2752 len = pfkey_send(lcconf->sock_pfkey, newmsg, len);
2754 racoon_free(newmsg);
2831 struct sadb_msg buf, *newmsg;
2851 if ((newmsg = racoon_calloc(1, reallen)) == NULL)
2854 *lenp = recv(so, (caddr_t)newmsg, reallen, MSG_PEEK);
2856 racoon_free(newmsg);
2859 racoon_free(newmsg);
2863 *lenp = recv(so, (caddr_t)newmsg, reallen, 0);
2865 racoon_free(newmsg);
2868 racoon_free(newmsg);
2872 return newmsg;