Re: ns_expire isn't increased in the kernel; exported as 0 to the

This is a discussion on Re: ns_expire isn't increased in the kernel; exported as 0 to the within the IPFilter forums, part of the System Security and Security Related category; This is a multi-part message in MIME format. --------------050205020804040105090100 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2007
Darren Reed
 
Posts: n/a
Default Re: ns_expire isn't increased in the kernel; exported as 0 to the

This is a multi-part message in MIME format.
--------------050205020804040105090100
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 7bit

I think you're looking for the attached patch.

Well spotted, thanks.

Darren


--------------050205020804040105090100
Content-Type: text/plain;
name="ipnat.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ipnat.patch"

Index: ip_nat.c
================================================== =================
RCS file: /devel/CVS/IP-Filter/ip_nat.c,v
retrieving revision 2.195.2.73
diff -c -r2.195.2.73 ip_nat.c
*** ip_nat.c 2 Feb 2007 23:53:33 -0000 2.195.2.73
--- ip_nat.c 2 Mar 2007 22:47:01 -0000
***************
*** 1671,1681 ****
--- 1671,1685 ----
if (nat->nat_tqe.tqe_ifq != NULL)
fr_deletequeueentry(&nat->nat_tqe);

+ if (logtype == NL_EXPIRE)
+ nat_stats.ns_expire++;
+
nat->nat_ref--;
if (nat->nat_ref > 0) {
MUTEX_EXIT(&ipf_nat_new);
return;
}
+
/*
* At this point, nat_ref can be either 0 or -1
*/
***************
*** 5225,5231 ****
break;
tqn = tqe->tqe_next;
nat = tqe->tqe_parent;
! nat_delete(nat, ISL_EXPIRE);
removed++;
}
}
--- 5229,5235 ----
break;
tqn = tqe->tqe_next;
nat = tqe->tqe_parent;
! nat_delete(nat, NL_EXPIRE);
removed++;
}
}
***************
*** 5239,5245 ****
break;
tqn = tqe->tqe_next;
nat = tqe->tqe_parent;
! nat_delete(nat, ISL_EXPIRE);
removed++;
}
}
--- 5243,5249 ----
break;
tqn = tqe->tqe_next;
nat = tqe->tqe_parent;
! nat_delete(nat, NL_EXPIRE);
removed++;
}
}

--------------050205020804040105090100--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0