]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Phil Blundell: ICMP, TCP and UDP extensions + rule deletion bug.
authorPhilip Blundell <Philip.Blundell@pobox.com>
Sun, 4 Jun 2000 17:25:33 +0000 (17:25 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 4 Jun 2000 17:25:33 +0000 (17:25 +0000)
extensions/Makefile
ip6tables-standalone.c
ip6tables.c

index 8e0dec1cae681d2b98caeba807e01496688d623a..04fd896f8dbd56739c3aea1905e41835771309d0 100644 (file)
@@ -1,8 +1,11 @@
 #! /usr/bin/make
 
 PF_EXT_SLIB:=tcp udp icmp mac limit standard REJECT LOG unclean state multiport tos TOS mark MARK owner SNAT DNAT MASQUERADE REDIRECT
+PF6_EXT_SLIB:=tcp udp icmp standard 
 SHARED_LIBS+=$(foreach T,$(PF_EXT_SLIB),extensions/libipt_$(T).so)
+SHARED_LIBS+=$(foreach T,$(PF6_EXT_SLIB),extensions/libip6t_$(T).so)
 EXTRA_INSTALLS+=$(foreach T, $(PF_EXT_SLIB), $(DESTDIR)$(LIBDIR)/iptables/libipt_$(T).so)
+EXTRA_INSTALLS+=$(foreach T, $(PF6_EXT_SLIB), $(DESTDIR)$(LIBDIR)/iptables/libip6t_$(T).so)
 
 ifndef TOPLEVEL_INCLUDED
 local:
@@ -12,3 +15,7 @@ endif
 $(DESTDIR)$(LIBDIR)/iptables/libipt_%.so: extensions/libipt_%.so
        @[ -d $(DESTDIR)$(LIBDIR)/iptables ] || mkdir -p $(DESTDIR)$(LIBDIR)/iptables
        cp $< $@
+
+$(DESTDIR)$(LIBDIR)/iptables/libip6t_%.so: extensions/libip6t_%.so
+       @[ -d $(DESTDIR)$(LIBDIR)/iptables ] || mkdir -p $(DESTDIR)$(LIBDIR)/iptables
+       cp $< $@
index 11b7cc759cc1929df9d2f735c2c1e6370eb695ad..e2b10f8873ac0e4a97de9fe9a765d8863e87508f 100644 (file)
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
                ret = ip6tc_commit(&handle);
 
        if (!ret)
-               fprintf(stderr, "iptables: %s\n",
+               fprintf(stderr, "ip6tables: %s\n",
                        ip6tc_strerror(errno));
 
        exit(!ret);
index 84215b9d8e9518514b534134969a5ce6049ff3a8..b75b7d4cebaf5133353490e2fe75afc8238d2f9f 100644 (file)
@@ -1231,17 +1231,16 @@ delete_entry(const ip6t_chainlabel chain,
 {
        unsigned int i, j;
        int ret = 1;
-       struct ip6t_entry ipfw = *fw;
        unsigned char *mask;
 
        mask = make_delete_mask(fw);
        for (i = 0; i < nsaddrs; i++) {
-               ipfw.ipv6.src = saddrs[i];
+               fw->ipv6.src = saddrs[i];
                for (j = 0; j < ndaddrs; j++) {
-                       ipfw.ipv6.dst = daddrs[j];
+                       fw->ipv6.dst = daddrs[j];
                        if (verbose)
                                print_firewall_line(fw, *handle);
-                       ret &= ip6tc_delete_entry(chain, &ipfw, mask, handle);
+                       ret &= ip6tc_delete_entry(chain, fw, mask, handle);
                }
        }
        return ret;