Hello,
I use following commands for this report within my src/ directory on
FreeBSD systems:
grep ns_expire contrib/ipfilter/* \
contrib/ipfilter/*/*
sys/contrib/ipfilter/netinet/*
With 3.4.35 (shipped with FreeBSD 5.x system) I see:
contrib/ipfilter/ipnat.c: nsp->ns_added,
nsp->ns_expire);
contrib/ipfilter/man/ipnat.4: u_long ns_expire;
sys/contrib/ipfilter/netinet/ip_nat.c: nat_stats.ns_expire++;
sys/contrib/ipfilter/netinet/ip_nat.h: u_long ns_expire;
ipnat.c is where ns_expire is exported to the user-space, and ip_nat.c
is where this value is getting increased.
The same command executed on 4.1.13 ipfilter distribution (shipped with
FreeBSD 6.x system) gives output with no ns_expire modification. Thus
this value is permanenty exported to the user-lang tools as zero:
contrib/ipfilter/man/ipnat.4: u_long ns_expire;
contrib/ipfilter/tools/ipnat.c: nsp->ns_added,
nsp->ns_expire);
sys/contrib/ipfilter/netinet/ip_nat.h: u_long ns_expire;
Was the change between ipfilter 3.4.35 and 4.1.13 intentional?
Regards,
--
Wojciech A. Koszek
[EMAIL PROTECTED]
http://FreeBSD.czest.pl/dunstan/