diff -Nru linux-2.4.1/net/ipv6/netfilter/ip6t_agr.c linux-2.4.1-t/net/ipv6/netfilter/ip6t_agr.c
--- linux-2.4.1/net/ipv6/netfilter/ip6t_agr.c      Mon May 22 18:50:55 2000
+++ linux-2.4.1-t/net/ipv6/netfilter/ip6t_agr.c Fri Nov 10 17:41:31 2000
@@ -0,0 +1,91 @@
+/* Kernel module to match AGR address parameters. */
+#include <linux/module.h>
+#include <linux/skbuff.h>
+#include <linux/ipv6.h>
+#include <linux/if_ether.h>
+
+#include <linux/netfilter_ipv6/ip6_tables.h>
+
+static int
+match(const struct sk_buff *skb,
+      const struct net_device *in,
+      const struct net_device *out,
+      const void *matchinfo,
+      int offset,
+      const void *hdr,
+      u_int16_t datalen,
+      int *hotdrop)
+{
+
+    unsigned char aggregated[8];
+    int i=0;
+
+    /*TODO size and pointer checking */
+     if ( !(skb->mac.raw >= skb->head
+                && (skb->mac.raw + ETH_HLEN) <= skb->data)
+                && offset != 0) {
+                        *hotdrop = 1;
+                        return 0;
+                }
+    
+    memset(aggregated, 0, sizeof(aggregated));
+
+    if (skb->mac.ethernet->h_proto == ntohs(ETH_P_IPV6)) {
+      if (skb->nh.ipv6h->version == 0x6) { 
+         memcpy(aggregated, skb->mac.ethernet->h_source, 3);
+         memcpy(aggregated + 5, skb->mac.ethernet->h_source + 3, 3);
+	 aggregated[3]=0xff;
+	 aggregated[4]=0xfe;
+	 aggregated[0] |= 0x02;
+
+	 i=0;
+	 while ((skb->nh.ipv6h->saddr.in6_u.u6_addr8[8+i] ==
+			 aggregated[i]) && (i<8)) i++;
+
+	 if ( i == 8 )
+	 	return 1;
+      }
+    }
+
+    return 0;
+
+/*    return (skb->mac.raw >= skb->head
+  	    && skb->mac.raw < skb->head + skb->len - ETH_HLEN */
+
+    
+}
+
+static int
+ipt_agr_checkentry(const char *tablename,
+		   const struct ip6t_ip6 *ip,
+		   void *matchinfo,
+		   unsigned int matchsize,
+		   unsigned int hook_mask)
+{
+	if (hook_mask
+	    & ~((1 << NF_IP6_PRE_ROUTING) | (1 << NF_IP6_LOCAL_IN))) {
+		printk("ipt_agr: only valid for PRE_ROUTING or LOCAL_IN.\n");
+		return 0;
+	}
+
+	if (matchsize != IP6T_ALIGN(sizeof(int)))
+		return 0;
+
+	return 1;
+}
+
+static struct ip6t_match agr_match
+= { { NULL, NULL }, "agr", &match, &ipt_agr_checkentry, NULL, THIS_MODULE };
+
+static int __init init(void)
+{
+	return ip6t_register_match(&agr_match);
+}
+
+static void __exit fini(void)
+{
+	ip6t_unregister_match(&agr_match);
+}
+
+module_init(init);
+module_exit(fini);
