source:
clfs-embedded/patches/iptables-1.3.7-do_multi-1.patch@
4a4fe83
Last change on this file since 4a4fe83 was 751a25a, checked in by , 18 years ago | |
---|---|
|
|
File size: 2.5 KB |
-
iptables-1.3.7
Submitted By: Jim Gifford <jciccone@linuxfromscratch.org> Date: 2007-02-05 Initial Package Version: 1.3.7 Origin: http://lists.netfilter.org/pipermail/netfilter-devel/2006-December/026344.html Upstream Status: Already Applied Description: Fixes Build Issues with DO_MULTI=1 diff -Naur iptables-1.3.7.orig/Makefile iptables-1.3.7/Makefile
old new 170 170 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) 171 171 172 172 ifeq ($(DO_MULTI), 1) 173 $(DESTDIR)$(BINDIR)/iptables-xml: iptables -xml173 $(DESTDIR)$(BINDIR)/iptables-xml: iptables 174 174 @[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR) 175 175 ln -sf $< $@ 176 176 else -
iptables-multi.c
diff -Naur iptables-1.3.7.orig/iptables-multi.c iptables-1.3.7/iptables-multi.c
old new 6 6 int iptables_main(int argc, char **argv); 7 7 int iptables_save_main(int argc, char **argv); 8 8 int iptables_restore_main(int argc, char **argv); 9 int iptables_xml_main(int argc, char **argv); 9 10 10 11 int main(int argc, char **argv) { 11 12 char *progname; … … 24 25 25 26 if (!strcmp(progname, "iptables-restore")) 26 27 return iptables_restore_main(argc, argv); 28 if (!strcmp(progname, "iptables-xml")) 29 return iptables_restore_main(argc, argv); 27 30 28 31 fprintf(stderr, "iptables multi-purpose version: unknown applet name %s\n", progname); 29 32 exit(1); -
iptables-xml.c
diff -Naur iptables-1.3.7.orig/iptables-xml.c iptables-1.3.7/iptables-xml.c
old new 26 26 /* no need to link with iptables.o */ 27 27 const char *program_name; 28 28 const char *program_version; 29 int line = 0;30 29 30 #ifndef IPTABLES_MULTI 31 int line = 0; 31 32 void 32 33 exit_error(enum exittype status, char *msg, ...) 33 34 { … … 41 42 /* On error paths, make sure that we don't leak memory */ 42 43 exit(status); 43 44 } 45 #endif 44 46 45 47 static void print_usage(const char *name, const char *version) 46 48 __attribute__ ((noreturn)); … … 66 68 exit(1); 67 69 } 68 70 69 int71 static int 70 72 parse_counters(char *string, struct ipt_counters *ctr) 71 73 { 72 74 if (string != NULL) … … 605 607 606 608 #ifdef IPTABLES_MULTI 607 609 int 608 iptables_ restore_main(int argc, char *argv[])610 iptables_xml_main(int argc, char *argv[]) 609 611 #else 610 612 int 611 613 main(int argc, char *argv[])
Note:
See TracBrowser
for help on using the repository browser.