X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fnetfilter%2Fxt_realm.c;h=41451f57919c99206eec378d7e609a6acfae7999;hb=cff533ac12494fa002e2c46acc94d670e5f636a2;hp=a80b7d132b65fd7cf2460758f7bf007cbf54cad9;hpb=4e8f10b7ccf1c3c53a818a157962074a7340732e;p=powerpc.git diff --git a/net/netfilter/xt_realm.c b/net/netfilter/xt_realm.c index a80b7d132b..41451f5791 100644 --- a/net/netfilter/xt_realm.c +++ b/net/netfilter/xt_realm.c @@ -1,6 +1,4 @@ /* IP tables module for matching the routing realm - * - * $Id: ipt_realm.c,v 1.3 2004/03/05 13:25:40 laforge Exp $ * * (C) 2003 by Sampsa Ranta * @@ -31,11 +29,11 @@ match(const struct sk_buff *skb, const void *matchinfo, int offset, unsigned int protoff, - int *hotdrop) + bool *hotdrop) { const struct xt_realm_info *info = matchinfo; struct dst_entry *dst = skb->dst; - + return (info->id == (dst->tclassid & info->mask)) ^ info->invert; }