Lines Matching defs:nat
170 nat_t *nat;
180 nat = &ipn.ipn_nat;
181 if (nlen >= sizeof(nat->nat_ifnames[0]) ||
182 olen >= sizeof(nat->nat_ifnames[0]))
193 if (!strncmp(nat->nat_ifnames[0], ifs, olen + 1)) {
194 strcpy(nat->nat_ifnames[0], s);
197 if (!strncmp(nat->nat_ifnames[1], ifs, olen + 1)) {
198 strcpy(nat->nat_ifnames[1], s);
570 nat_t *nat;
585 perror("nat:open");
604 fprintf(stderr, "nat:incomplete read: %d != %d\n",
623 "nat:incomplete read: %d != %d\n",
640 nat = &in->ipn_nat;
641 if (nat->nat_fr != NULL) {
643 if (in1->ipn_rule == nat->nat_fr)
646 nat->nat_flags |= SI_NEWFR;
648 nat->nat_fr = &in1->ipn_fr;
671 nat = &in->ipn_nat;
672 if (nat->nat_flags & SI_NEWFR) {
686 if (nat->nat_flags & SI_NEWFR) {
688 printf("Real rule addr %p\n", nat->nat_fr);
691 in1->ipn_rule = nat->nat_fr;
714 perror("nat:open");
723 printf("Getting nat from addr %p\n", ipnp);
727 perror("nat:SIOCSTGSZ");
758 perror("nat:SIOCSTGET");
765 printf("Got nat next %p ipn_dsize %d ng_sz %d\n",
768 perror("nat:write");