Lines Matching defs:softr
780 /* Paramters: softr(I) - pointer to radix context */
787 /* right. The context, "softr", is used here to provide a common source of */
791 ipf_rx_inithead(radix_softc_t *softr, ipf_rdx_head_t **headp)
819 node[0].addrkey = (u_32_t *)softr->zeros;
820 node[2].addrkey = (u_32_t *)softr->ones;
859 radix_softc_t *softr;
861 KMALLOC(softr, radix_softc_t *);
862 if (softr == NULL)
864 bzero((char *)softr, sizeof(*softr));
866 KMALLOCS(softr->zeros, u_char *, 3 * sizeof(addrfamily_t));
867 if (softr->zeros == NULL) {
868 KFREE(softr);
871 softr->ones = softr->zeros + sizeof(addrfamily_t);
873 return softr;
885 radix_softc_t *softr = ctx;
887 memset(softr->zeros, 0, 3 * sizeof(addrfamily_t));
888 memset(softr->ones, 0xff, sizeof(addrfamily_t));
902 radix_softc_t *softr = ctx;
904 if (softr->zeros != NULL)
905 KFREES(softr->zeros, 3 * sizeof(addrfamily_t));
906 KFREE(softr);