--- ../chaostables/tags/v0.7/kernel/xt_portscan.c.orig 2008-03-26 08:58:01.000000000 +0100 +++ ../chaostables/tags/v0.7/kernel/xt_portscan.c 2008-03-26 15:01:29.000000000 +0100 @@ -18,6 +18,7 @@ #include #include #include +#include #include "xt_portscan.h" #define PFX KBUILD_MODNAME ": " @@ -170,10 +171,10 @@ return mark; } -static int xt_portscan_match(const struct sk_buff *skb, +static bool xt_portscan_match(const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct xt_match *match, const void *matchinfo, int offset, - unsigned int protoff, int *hotdrop) + unsigned int protoff, bool *hotdrop) { const struct xt_portscan_info *info = matchinfo; enum ip_conntrack_info ctstate; @@ -206,7 +207,7 @@ unsigned int n; n = xt_portscan_full(ctdata->mark & connmark_mask, ctstate, - in == &loopback_dev, tcph, + in == init_net.loopback_dev, tcph, skb->len - protoff - 4 * tcph->doff); ctdata->mark = (ctdata->mark & ~connmark_mask) | n; @@ -219,7 +220,7 @@ (info->match_gr && ctdata->mark == mark_grscan); } -static int xt_portscan_checkentry(const char *tablename, const void *entry, +static bool xt_portscan_checkentry(const char *tablename, const void *entry, const struct xt_match *match, void *matchinfo, unsigned int hook_mask) { const struct xt_portscan_info *info = matchinfo;