iptables: update to 1.8.8
[openwrt/staging/aparcar.git] / package / network / utils / iptables / patches / 102-iptables-disable-modprobe.patch
1 --- a/libxtables/xtables.c
2 +++ b/libxtables/xtables.c
3 @@ -476,7 +476,7 @@ char *xtables_strdup(const char *s)
4 return dup;
5 }
6
7 -static char *get_modprobe(void)
8 +__attribute__((unused)) static char *get_modprobe(void)
9 {
10 int procfile;
11 char *ret;
12 @@ -511,6 +511,7 @@ static char *get_modprobe(void)
13
14 int xtables_insmod(const char *modname, const char *modprobe, bool quiet)
15 {
16 +#if 0
17 char *buf = NULL;
18 char *argv[4];
19 int status;
20 @@ -545,6 +546,7 @@ int xtables_insmod(const char *modname,
21 free(buf);
22 if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
23 return 0;
24 +#endif
25 return -1;
26 }
27