/* IP tables module for matching the routing realm * * (C) 2003 by Sampsa Ranta <sampsa@netsonic.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/module.h> #include <linux/skbuff.h> #include <linux/netdevice.h> #include <net/route.h> #include <linux/netfilter_ipv4.h> #include <linux/netfilter/xt_realm.h> #include <linux/netfilter/x_tables.h> MODULE_AUTHOR("Sampsa Ranta <sampsa@netsonic.fi>"); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Xtables: Routing realm match"); MODULE_ALIAS("ipt_realm");
static bool realm_mt(const struct sk_buff *skb, struct xt_action_param *par) { const struct xt_realm_info *info = par->matchinfo; const struct dst_entry *dst = skb_dst(skb); return (info->id == (dst->tclassid & info->mask)) ^ info->invert; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Patrick McHardy | 48 | 81.36% | 1 | 12.50% |
Jan Engelhardt | 7 | 11.86% | 5 | 62.50% |
Eric Dumazet | 3 | 5.08% | 1 | 12.50% |
Harald Welte | 1 | 1.69% | 1 | 12.50% |
Total | 59 | 100.00% | 8 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Patrick McHardy | 13 | 81.25% | 1 | 33.33% |
Jan Engelhardt | 2 | 12.50% | 1 | 33.33% |
Harald Welte | 1 | 6.25% | 1 | 33.33% |
Total | 16 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Patrick McHardy | 12 | 80.00% | 1 | 33.33% |
Jan Engelhardt | 2 | 13.33% | 1 | 33.33% |
Harald Welte | 1 | 6.67% | 1 | 33.33% |
Total | 15 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Patrick McHardy | 169 | 82.04% | 5 | 33.33% |
Jan Engelhardt | 17 | 8.25% | 7 | 46.67% |
Harald Welte | 13 | 6.31% | 1 | 6.67% |
Pablo Neira Ayuso | 4 | 1.94% | 1 | 6.67% |
Eric Dumazet | 3 | 1.46% | 1 | 6.67% |
Total | 206 | 100.00% | 15 | 100.00% |