Lines Matching refs:ipnp
712 nat_save_t *ipnp = NULL, *next = NULL;
732 printf("Getting nat from addr %p\n", ipnp);
738 if (ipnp != NULL)
739 free(ipnp);
749 if (!ipnp)
750 ipnp = malloc(ng.ng_sz);
752 ipnp = realloc((char *)ipnp, ng.ng_sz);
753 if (!ipnp) {
759 bzero((char *)ipnp, ng.ng_sz);
761 obj.ipfo_ptr = ipnp;
762 ipnp->ipn_dsize = ng.ng_sz;
763 ipnp->ipn_next = next;
769 free(ipnp);
775 ipnp->ipn_next, ipnp->ipn_dsize, ng.ng_sz);
776 if (write(nfd, ipnp, ipnp->ipn_dsize) != ipnp->ipn_dsize) {
779 free(ipnp);
782 next = ipnp->ipn_next;
783 } while (ipnp && next);
784 if (ipnp != NULL)
785 free(ipnp);