diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-07-16 18:14:20 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-07-16 18:14:20 +0000 |
commit | 868bf647d1c4c69b69ad271d9053d709744f248d (patch) | |
tree | f92f4461ae03da813ab5b0b6c3898e1aeae899bf | |
parent | 5f16dc7831a9f9ce833897a1570a692eede70651 (diff) |
--atomic-commit copies counters
-rw-r--r-- | ebtables.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2108,7 +2108,13 @@ int main(int argc, char *argv[]) strcpy(replace.filename, optarg); // get the information from the file get_table(&replace); - replace.num_counters = 0; + if (replace.nentries) { + counterchanges = (unsigned short *) + malloc(sizeof(unsigned short) * (replace.nentries + 1)); + for (i = 0; i < replace.nentries; i++) + counterchanges[i] = CNT_NORM; + counterchanges[i] = CNT_END; + } free(replace.filename); replace.filename = NULL; break; |