Fixes:
> /usr/sbin/ebtables -t nat -X something
> Segmentation fault (core dumped)
Makes '-X' argument mandatory, but the code is not ready for omitting it
anyway.
Release: 2
--- /dev/null
+diff -dur iptables-1.6.1.orig/iptables/xtables-eb.c iptables-1.6.1/iptables/xtables-eb.c
+--- iptables-1.6.1.orig/iptables/xtables-eb.c 2017-01-26 17:11:58.000000000 +0100
++++ iptables-1.6.1/iptables/xtables-eb.c 2017-07-03 12:06:20.000000000 +0200
+@@ -776,7 +776,7 @@
+
+ /* Getopt saves the day */
+ while ((c = getopt_long(argc, argv,
+- "-A:D:C:I:N:E:X::L::Z::F::P:Vhi:o:j:c:p:s:d:t:M:", opts, NULL)) != -1) {
++ "-A:D:C:I:N:E:X:L::Z::F::P:Vhi:o:j:c:p:s:d:t:M:", opts, NULL)) != -1) {
+ cs.c = c;
+ cs.invert = ebt_invert;
+ switch (c) {
Summary(zh_CN.UTF-8): Linux内核包过滤管理工具
Name: iptables%{?with_vserver:-vserver}
Version: 1.6.1
-Release: 1
+Release: 2
License: GPL v2
Group: Networking/Admin
Source0: ftp://ftp.netfilter.org/pub/iptables/%{orgname}-%{version}.tar.bz2
Patch2: no-libiptc.patch
Patch3: %{orgname}-aligned_u64.patch
Patch4: %{orgname}-ebtables.patch
+Patch5: ebtables-X.patch
# --- ADDITIONAL/CHANGED EXTENSIONS:
# just ipt_IPV4OPTSSTRIP now
Patch10: %{orgname}-20070806.patch
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{?with_ipt_IPV4OPTSSTRIP:%patch10 -p1}
%{?with_xt_layer7:%patch11 -p1}