Home | History | Annotate | Download | only in netinet

Lines Matching defs:nat

198 	RWLOCK_INIT(&softf->ipfr_natfrag, "ipf NAT fragment rwlock");
539 /* nat(I) - pointer to NAT structure */
541 /* Create a new NAT fragment cache entry based on the current packet and */
542 /* the NAT structure for this "session". */
546 nat_t *nat)
561 fra->ipfr_data = nat;
562 nat->nat_data = fra;
787 /* Returns: nat_t* - pointer to 'parent' NAT structure if frag table */
791 /* Functional interface for NAT lookups of the NAT fragment cache */
798 nat_t *nat;
810 nat = ipf->ipfr_data;
814 if ((ipf->ipfr_ttl == softc->ipf_ticks + 1) && (nat != NULL)) {
815 nat->nat_data = NULL;
820 nat = NULL;
821 return nat;
923 /* Search through all of the fragment cache entries for NAT and wherever a */
995 /* fragment state stuff first and then the NAT-fragment table. */
1002 nat_t *nat;
1015 nat = fra->ipfr_data;
1016 if (nat != NULL) {
1017 if (nat->nat_data == fra)
1018 nat->nat_data = NULL;
1041 nat_t *nat;
1071 * Same again for the NAT table, except that if the structure also
1072 * still points to a NAT structure, and the NAT structure points back
1073 * at the one to be free'd, NULL the reference from the NAT struct.
1076 * The extra if() statement here is because it locks out all NAT
1086 nat = fra->ipfr_data;
1087 if (nat != NULL) {
1088 if (nat->nat_data == fra)
1089 nat->nat_data = NULL;
1146 /* This function is used for both the NAT fragment cache as well as the ipf */