summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/libebtc.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2005-10-01 20:12:50 +0000
committerBart De Schuymer <bdschuym@pandora.be>2005-10-01 20:12:50 +0000
commite1d621d9657b39ccf3f1141e0cd3a5aefa86da5f (patch)
treecb625943feb3212921e9bd2654323d1386ac6ddd /userspace/ebtables2/libebtc.c
parent8e2210445721523b6197a2ba964493653d0f73b0 (diff)
minor changes
Diffstat (limited to 'userspace/ebtables2/libebtc.c')
-rw-r--r--userspace/ebtables2/libebtc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/userspace/ebtables2/libebtc.c b/userspace/ebtables2/libebtc.c
index af95694..b558c9c 100644
--- a/userspace/ebtables2/libebtc.c
+++ b/userspace/ebtables2/libebtc.c
@@ -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));