Lines Matching refs:pbuf
72 static caddr_t pbuf = NULL; /* sadb_x_policy buffer */ variable
298 pbuf = malloc(tlen); in init_x_policy()
299 if (pbuf == NULL) { in init_x_policy()
303 memset(pbuf, 0, tlen); in init_x_policy()
304 p = (struct sadb_x_policy *)pbuf; in init_x_policy()
328 pbuf = realloc(pbuf, tlen); in set_x_request()
329 if (pbuf == NULL) { in set_x_request()
333 p = (struct sadb_x_ipsecrequest *)&pbuf[offset]; in set_x_request()
358 memcpy(&pbuf[offset], addr, addr->sa_len); in set_sockaddr()
389 pbuf = NULL; in policy_parse()
402 if (pbuf != NULL) in policy_parse()
403 free(pbuf); in policy_parse()
408 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen); in policy_parse()
412 return pbuf; in policy_parse()