KMALLOCS
KMALLOCS(ifs, ipf_stack_t *, sizeof (*ifs));
KMALLOCS(ptr, void *, fp->fr_dsize);
KMALLOCS(ifs->ifs_fr_auth, frauth_t *,
KMALLOCS(ifs->ifs_fr_authpkts, mb_t **,
KMALLOCS(ifs->ifs_ipfr_heads, ipfr_t **,
KMALLOCS(ifs->ifs_ipfr_nattab, ipfr_t **,
KMALLOCS(ifs->ifs_ipfr_ipidtab, ipfr_t **,
KMALLOCS(iph->iph_table, iphtent_t **,
KMALLOCS(buf, caddr_t, len);
KMALLOCS(ipn, nat_save_t *, ipns.ipn_dsize);
KMALLOCS(ipnn, nat_save_t *, ipn.ipn_dsize);
KMALLOCS(aps->aps_data, void *, aps->aps_psiz);
KMALLOCS(ifs->ifs_nat_table[0], nat_t **,
KMALLOCS(ifs->ifs_nat_table[1], nat_t **,
KMALLOCS(ifs->ifs_nat_rules, ipnat_t **,
KMALLOCS(ifs->ifs_rdr_rules, ipnat_t **,
KMALLOCS(ifs->ifs_maptable, hostmap_t **,
KMALLOCS(ifs->ifs_nat_stats.ns_bucketlen[0], u_long *,
KMALLOCS(ifs->ifs_nat_stats.ns_bucketlen[1], u_long *,
KMALLOCS(ptr, caddr_t, ctl.apc_dsize);
KMALLOCS(ifs->ifs_ap_proxies, aproxy_t *, sizeof (lcl_ap_proxies));
KMALLOCS(ifs->ifs_ips_table, ipstate_t **,
KMALLOCS(ifs->ifs_ips_seed, u_long *,
KMALLOCS(ifs->ifs_ips_stats.iss_bucketlen, u_long *,
# define SLEEPING_KMALLOCS KMALLOCS
KMALLOCS(newarray, char *, aps->aps_psiz + sizeof(*ipn));
KMALLOCS(aps->aps_data, ipsec_pxy_t *, sizeof(*ipsec));
KMALLOCS(aps->aps_data, pptp_pxy_t *, sizeof(*pptp));
KMALLOCS(aps->aps_data, void *, sizeof(raudio_t));
KMALLOCS(aps->aps_data, u_32_t *, sizeof(u_32_t));
#define R_Malloc(p, t, n) KMALLOCS(p, t, n)