diff options
author | jamal <hadi@cyberus.ca> | 2009-10-19 04:17:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-20 08:22:49 +0200 |
commit | 7e75f93eda027d9f9e0203ee6ffd210ea92e98f3 (patch) | |
tree | 3e9df7c2456909f1afaf9d63716c34d769557e6c /net/core | |
parent | qlge: Size RX buffers based on MTU. (diff) | |
download | linux-7e75f93eda027d9f9e0203ee6ffd210ea92e98f3.tar.xz linux-7e75f93eda027d9f9e0203ee6ffd210ea92e98f3.zip |
pkt_sched: ingress socket filter by mark
Allow bpf to set a filter to drop packets that dont
match a specific mark
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index d1d779ca096d..e3987e1d4839 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -303,6 +303,9 @@ load_b: case SKF_AD_IFINDEX: A = skb->dev->ifindex; continue; + case SKF_AD_MARK: + A = skb->mark; + continue; case SKF_AD_NLATTR: { struct nlattr *nla; |