]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-compat: ebtables: support concurrent option
authorFlorian Westphal <fw@strlen.de>
Mon, 7 May 2018 11:35:49 +0000 (13:35 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 7 May 2018 11:35:51 +0000 (13:35 +0200)
We don't need extra locking as we don't go though rmw cycle
when adding a rule, but accept the option for compatibility with
legacy ebtables.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-eb.c

index 68a5e7ea05da2f2d74c2f9f2a27cc3ea64efb043..1a95eef4e3ea63e0a8e86303d2938cfa3b0dc5e6 100644 (file)
@@ -1236,12 +1236,9 @@ big_iface_length:
                         * executed in daemon mode */
                        /*replace->filename = (char *)malloc(strlen(optarg) + 1);
                        strcpy(replace->filename, optarg);
+                       break; */
+               case 13 :
                        break;
-               case 13 : *//* concurrent */
-                       /*signal(SIGINT, sighandler);
-                       signal(SIGTERM, sighandler);
-                       use_lockfd = 1;
-                       break;*/
                case 1 :
                        if (!strcmp(optarg, "!"))
                                ebt_check_inverse2(optarg, argc, argv);