[ipfilter-cvs] ipfilter ip_frag.c,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-28 06:45:04
|
Update of /cvsroot/ipfilter/ipfilter In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17904 Modified Files: 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.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** ip_frag.c 13 Aug 2012 11:42:01 -0000 1.35 --- ip_frag.c 28 Jun 2014 06:45:01 -0000 1.36 *************** *** 955,959 **** /* 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 */ --- 955,960 ---- /* 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 */ *************** *** 979,983 **** /* 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 */ --- 980,985 ---- /* 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 */ *************** *** 1016,1020 **** --- 1018,1025 ---- /* 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 *************** *** 1032,1036 **** /* Function: ipf_frag_clear */ /* Returns: Nil */ ! /* Parameters: Nil */ /* */ /* Free memory in use by fragment state information kept. Do the normal */ --- 1037,1041 ---- /* 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 */ *************** *** 1073,1077 **** /* Function: ipf_frag_expire */ /* Returns: Nil */ ! /* Parameters: Nil */ /* */ /* Expire entries in the fragment cache table that have been there too long */ --- 1078,1082 ---- /* 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 */ *************** *** 1145,1148 **** --- 1150,1160 ---- /* ------------------------------------------------------------------------ */ /* 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 *************** *** 1165,1168 **** --- 1177,1187 ---- /* ------------------------------------------------------------------------ */ /* 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 *************** *** 1185,1189 **** /* 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 */ --- 1204,1209 ---- /* 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 */ *************** *** 1264,1268 **** --- 1284,1292 ---- /* 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 *************** *** 1286,1290 **** --- 1310,1318 ---- /* 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 |