iptables: add patch to supress unwanted warnings with SNAT/DNAT module

- upstream port is still a WIP, if it ever gets finished: revision 1 of this modules is from 26 Aug 2012, but revision 2 needed by current iptables is from 04 Apr 2018(!)
arm-master
pedro 8 months ago
parent 2b11fd8728
commit 86ea31a1d6

@ -0,0 +1,26 @@
--- iptables-1.8.x/libxtables/xtables.c
+++ iptables-1.8.x/libxtables/xtables.c
@@ -809,9 +809,9 @@
dptr = &((*dptr)->next);
}
- if (seen && !found)
+ if (seen && !found && !(strcmp(name, "DNAT") == 0) && !(strcmp(name, "SNAT") == 0))
fprintf(stderr,
- "Warning: Extension %s is not supported, missing kernel module?\n",
+ "Warning: Extension %s (match) is not supported, missing kernel module?\n",
name);
for (ptr = xtables_matches; ptr; ptr = ptr->next) {
@@ -939,9 +939,9 @@
dptr = &((*dptr)->next);
}
- if (seen && !found)
+ if (seen && !found && !(strcmp(name, "DNAT") == 0) && !(strcmp(name, "SNAT") == 0))
fprintf(stderr,
- "Warning: Extension %s is not supported, missing kernel module?\n",
+ "Warning: Extension %s (target) is not supported, missing kernel module?\n",
name);
for (ptr = xtables_targets; ptr; ptr = ptr->next) {
Loading…
Cancel
Save