diff options
-rw-r--r-- | include/linux/filter.h | 3 | ||||
-rw-r--r-- | net/core/filter.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 909193e25395..bb3b4352978a 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
@@ -124,7 +124,8 @@ struct sock_fprog /* Required for SO_ATTACH_FILTER. */ | |||
124 | #define SKF_AD_NLATTR 12 | 124 | #define SKF_AD_NLATTR 12 |
125 | #define SKF_AD_NLATTR_NEST 16 | 125 | #define SKF_AD_NLATTR_NEST 16 |
126 | #define SKF_AD_MARK 20 | 126 | #define SKF_AD_MARK 20 |
127 | #define SKF_AD_MAX 24 | 127 | #define SKF_AD_QUEUE 24 |
128 | #define SKF_AD_MAX 28 | ||
128 | #define SKF_NET_OFF (-0x100000) | 129 | #define SKF_NET_OFF (-0x100000) |
129 | #define SKF_LL_OFF (-0x200000) | 130 | #define SKF_LL_OFF (-0x200000) |
130 | 131 | ||
diff --git a/net/core/filter.c b/net/core/filter.c index e3987e1d4839..08db7b9143a3 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -306,6 +306,9 @@ load_b: | |||
306 | case SKF_AD_MARK: | 306 | case SKF_AD_MARK: |
307 | A = skb->mark; | 307 | A = skb->mark; |
308 | continue; | 308 | continue; |
309 | case SKF_AD_QUEUE: | ||
310 | A = skb->queue_mapping; | ||
311 | continue; | ||
309 | case SKF_AD_NLATTR: { | 312 | case SKF_AD_NLATTR: { |
310 | struct nlattr *nla; | 313 | struct nlattr *nla; |
311 | 314 | ||