[ipfilter-cvs] ipfilter ip_frag.c,v5-1-RELEASE
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-28 06:45:19
|
Update of /cvsroot/ipfilter/ipfilter In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17956 Modified Files: Tag: v5-1-RELEASE ip_frag.c Log Message: #558 add in some missing frag table function comments Index: ip_frag.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_frag.c,v retrieving revision 1.24.2.12 retrieving revision 1.24.2.13 diff -C2 -d -r1.24.2.12 -r1.24.2.13 *** ip_frag.c 13 Aug 2012 11:44:15 -0000 1.24.2.12 --- ip_frag.c 28 Jun 2014 06:45:17 -0000 1.24.2.13 *************** *** 956,960 **** /* Function: ipf_frag_natforget */ /* Returns: Nil */ ! /* Parameters: ptr(I) - pointer to data structure */ /* */ /* Search through all of the fragment cache entries for NAT and wherever a */ --- 956,961 ---- /* Function: ipf_frag_natforget */ /* Returns: Nil */ ! /* Parameters: softc(I) - pointer to soft context main structure */ ! /* ptr(I) - pointer to data structure */ /* */ /* Search through all of the fragment cache entries for NAT and wherever a */ *************** *** 980,984 **** /* Function: ipf_frag_delete */ /* Returns: Nil */ ! /* Parameters: fra(I) - pointer to fragment structure to delete */ /* tail(IO) - pointer to the pointer to the tail of the frag */ /* list */ --- 981,986 ---- /* Function: ipf_frag_delete */ /* Returns: Nil */ ! /* Parameters: softc(I) - pointer to soft context main structure */ ! /* fra(I) - pointer to fragment structure to delete */ /* tail(IO) - pointer to the pointer to the tail of the frag */ /* list */ *************** *** 1017,1021 **** --- 1019,1026 ---- /* Function: ipf_frag_free */ /* Returns: Nil */ + /* Parameters: softf(I) - pointer to fragment context information */ + /* fra(I) - pointer to fragment structure to free */ /* */ + /* Free up a fragment cache entry and bump relevent statistics. */ /* ------------------------------------------------------------------------ */ static void *************** *** 1033,1037 **** /* Function: ipf_frag_clear */ /* Returns: Nil */ ! /* Parameters: Nil */ /* */ /* Free memory in use by fragment state information kept. Do the normal */ --- 1038,1042 ---- /* Function: ipf_frag_clear */ /* Returns: Nil */ ! /* Parameters: softc(I) - pointer to soft context main structure */ /* */ /* Free memory in use by fragment state information kept. Do the normal */ *************** *** 1074,1078 **** /* Function: ipf_frag_expire */ /* Returns: Nil */ ! /* Parameters: Nil */ /* */ /* Expire entries in the fragment cache table that have been there too long */ --- 1079,1083 ---- /* Function: ipf_frag_expire */ /* Returns: Nil */ ! /* Parameters: softc(I) - pointer to soft context main structure */ /* */ /* Expire entries in the fragment cache table that have been there too long */ *************** *** 1146,1149 **** --- 1151,1161 ---- /* ------------------------------------------------------------------------ */ /* Function: ipf_frag_pkt_next */ + /* Returns: int - 0 == success, else error */ + /* Parameters: softc(I) - pointer to soft context main structure */ + /* token(I) - pointer to token information for this caller */ + /* itp(I) - pointer to generic iterator from caller */ + /* */ + /* This function is used to step through the fragment cache list used for */ + /* filter rules. The hard work is done by the more generic ipf_frag_next. */ /* ------------------------------------------------------------------------ */ int *************** *** 1166,1169 **** --- 1178,1188 ---- /* ------------------------------------------------------------------------ */ /* Function: ipf_frag_nat_next */ + /* Returns: int - 0 == success, else error */ + /* Parameters: softc(I) - pointer to soft context main structure */ + /* token(I) - pointer to token information for this caller */ + /* itp(I) - pointer to generic iterator from caller */ + /* */ + /* This function is used to step through the fragment cache list used for */ + /* NAT. The hard work is done by the more generic ipf_frag_next. */ /* ------------------------------------------------------------------------ */ int *************** *** 1186,1190 **** /* Function: ipf_frag_next */ /* Returns: int - 0 == success, else error */ ! /* Parameters: token(I) - pointer to token information for this caller */ /* itp(I) - pointer to generic iterator from caller */ /* top(I) - top of the fragment list */ --- 1205,1210 ---- /* Function: ipf_frag_next */ /* Returns: int - 0 == success, else error */ ! /* Parameters: softc(I) - pointer to soft context main structure */ ! /* token(I) - pointer to token information for this caller */ /* itp(I) - pointer to generic iterator from caller */ /* top(I) - top of the fragment list */ *************** *** 1265,1269 **** --- 1285,1293 ---- /* Function: ipf_frag_pkt_deref */ /* Returns: Nil */ + /* Parameters: softc(I) - pointer to soft context main structure */ + /* data(I) - pointer to frag cache pointer */ /* */ + /* This function is the external interface for dropping a reference to a */ + /* fragment cache entry used by filter rules. */ /* ------------------------------------------------------------------------ */ void *************** *** 1287,1291 **** --- 1311,1319 ---- /* Function: ipf_frag_nat_deref */ /* Returns: Nil */ + /* Parameters: softc(I) - pointer to soft context main structure */ + /* data(I) - pointer to frag cache pointer */ /* */ + /* This function is the external interface for dropping a reference to a */ + /* fragment cache entry used by NAT table entries. */ /* ------------------------------------------------------------------------ */ void |