#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>
}
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. */
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;
}