Lines Matching refs:ng
688 natget_t ng;
706 ng.ng_ptr = next;
707 ng.ng_sz = 0;
708 if (ioctl(fd, SIOCSTGSZ, &ng)) {
717 printf("NAT size %d from %p\n", ng.ng_sz, ng.ng_ptr);
719 if (ng.ng_sz == 0)
723 ipnp = malloc(ng.ng_sz);
725 ipnp = realloc((char *)ipnp, ng.ng_sz);
728 "malloc for %d bytes failed\n", ng.ng_sz);
732 bzero((char *)ipnp, ng.ng_sz);
733 obj.ipfo_size = ng.ng_sz;
735 ipnp->ipn_dsize = ng.ng_sz;
748 ipnp->ipn_next, ipnp->ipn_dsize, ng.ng_sz);