diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2005-10-01 20:12:50 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2005-10-01 20:12:50 +0000 |
commit | cdc2cd0195ffac0996772d0dcec0d1535f16a2d8 (patch) | |
tree | 4c974920aa73e449c79f649a7c1713d5fe5b4400 /libebtc.c | |
parent | 9d680cc0033cd96bfd31c933e808a79ebea32f2f (diff) |
minor changes
Diffstat (limited to 'libebtc.c')
-rw-r--r-- | libebtc.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -817,17 +817,6 @@ void ebt_new_chain(struct ebt_u_replace *replace, const char *name, int policy) { struct ebt_u_entries *new; - if (ebt_get_chainnr(replace, name) != -1) { - ebt_print_error("Chain %s already exists", optarg); - return; - } else if (ebt_find_target(name)) { - ebt_print_error("Target with name %s exists", optarg); - return; - } else if (strlen(optarg) >= EBT_CHAIN_MAXNAMELEN) { - ebt_print_error("Chain name length can't exceed %d", - EBT_CHAIN_MAXNAMELEN - 1); - return; - } if (replace->num_chains == replace->max_chains) ebt_double_chains(replace); new = (struct ebt_u_entries *)malloc(sizeof(struct ebt_u_entries)); |