patch-2.4.21 linux-2.4.21/net/ipv4/netfilter/ipchains_core.c
Next file: linux-2.4.21/net/ipv4/netfilter/ipfwadm_core.c
Previous file: linux-2.4.21/net/ipv4/netfilter/ip_tables.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/net/ipv4/netfilter/ipchains_core.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/net/ipv4/netfilter/ipchains_core.c linux-2.4.21/net/ipv4/netfilter/ipchains_core.c
@@ -1566,16 +1566,8 @@
/* File offset is actually in records, not bytes. */
static int ip_chain_procinfo(char *buffer, char **start,
- off_t offset, int length
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,29)
- , int reset
-#endif
- )
+ off_t offset, int length)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,29)
- /* FIXME: No more `atomic' read and reset. Wonderful 8-( --RR */
- int reset = 0;
-#endif
struct ip_chain *i;
struct ip_fwkernel *j = ip_fw_chains->chain;
unsigned long flags;
@@ -1612,9 +1604,6 @@
len = last_len;
goto outside;
}
- else if (reset)
- memset(j->counters, 0,
- sizeof(struct ip_counters)*NUM_SLOTS);
}
}
outside:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)