commit | 8cedf8429ed419f7ba39c5444a262175463bd8af | [log] [tgz] |
---|---|---|
author | Jussi Laakkonen <jussi.laakkonen@jolla.com> | Fri Jan 26 18:20:58 2018 +0200 |
committer | Daniel Wagner <wagi@monom.org> | Sun Jan 28 18:47:44 2018 +0100 |
tree | 850bd1206b7190d1597ea3a2ba06b2b8790b57fa | |
parent | ab9c0dd1072b0e8452826bea07193b8c7dd9e575 [diff] |
iptables: Add duplicate chain check to iptables_add_chain(). This commit adds a check to iptables_add_chain() before new chain is added. If a chain with same name is found -EEXIST will be returned. Without this, e.g., chain INPUT can be duplicated to iptables filter table and it cannot be removed with iptables_remove_chain() or iptables -X. After boot the duplicate builtin chain is removed.