Added the new version for dummynet.
[ipfw.git] / dummynet / ipfw2_mod.c
index 667d487..4b7edd1 100644 (file)
@@ -49,8 +49,6 @@
 #include <sys/mbuf.h>                  /* sizeof struct mbuf */
 #include <sys/param.h>                 /* NGROUPS */
 
-#include "missing.h"
-
 #ifdef __linux__
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -407,7 +405,7 @@ ipfw2_queue_handler(QH_ARGS)
        }
 
        if (m != NULL) {        /* Accept. reinject and free the mbuf */
-               REINJECT(info, NF_STOP);
+               REINJECT(info, NF_ACCEPT);
                m_freem(m);
        } else if (ret == 0) {
                /* dummynet has kept the packet, will reinject later. */
@@ -502,7 +500,7 @@ linux_lookup(const int proto, const __be32 saddr, const __be16 sport,
        if (proto != IPPROTO_TCP)       /* XXX extend for UDP */
                return -1;
 
-       if ((dir ? (void *)skb->dst : (void *)skb->dev) == NULL) {
+       if ((dir ? (void *)skb_dst(skb) : (void *)skb->dev) == NULL) {
                panic(" -- this should not happen\n");
                return -1;
        }