Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
10111a6e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
10111a6e
编写于
9月 21, 2012
作者:
J
Jozsef Kadlecsik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netfilter: ipset: Include supported revisions in module description
Signed-off-by:
N
Jozsef Kadlecsik
<
kadlec@blackhole.kfki.hu
>
上级
bd9087e0
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
78 addition
and
39 deletion
+78
-39
include/linux/netfilter/ipset/ip_set.h
include/linux/netfilter/ipset/ip_set.h
+6
-0
net/netfilter/ipset/ip_set_bitmap_ip.c
net/netfilter/ipset/ip_set_bitmap_ip.c
+6
-3
net/netfilter/ipset/ip_set_bitmap_ipmac.c
net/netfilter/ipset/ip_set_bitmap_ipmac.c
+6
-3
net/netfilter/ipset/ip_set_bitmap_port.c
net/netfilter/ipset/ip_set_bitmap_port.c
+6
-3
net/netfilter/ipset/ip_set_hash_ip.c
net/netfilter/ipset/ip_set_hash_ip.c
+6
-3
net/netfilter/ipset/ip_set_hash_ipport.c
net/netfilter/ipset/ip_set_hash_ipport.c
+6
-3
net/netfilter/ipset/ip_set_hash_ipportip.c
net/netfilter/ipset/ip_set_hash_ipportip.c
+6
-3
net/netfilter/ipset/ip_set_hash_ipportnet.c
net/netfilter/ipset/ip_set_hash_ipportnet.c
+8
-5
net/netfilter/ipset/ip_set_hash_net.c
net/netfilter/ipset/ip_set_hash_net.c
+7
-4
net/netfilter/ipset/ip_set_hash_netiface.c
net/netfilter/ipset/ip_set_hash_netiface.c
+7
-4
net/netfilter/ipset/ip_set_hash_netport.c
net/netfilter/ipset/ip_set_hash_netport.c
+8
-5
net/netfilter/ipset/ip_set_list_set.c
net/netfilter/ipset/ip_set_list_set.c
+6
-3
未找到文件。
include/linux/netfilter/ipset/ip_set.h
浏览文件 @
10111a6e
...
...
@@ -206,9 +206,15 @@ enum ip_set_kopt {
#include <linux/netlink.h>
#include <linux/netfilter.h>
#include <linux/netfilter/x_tables.h>
#include <linux/stringify.h>
#include <linux/vmalloc.h>
#include <net/netlink.h>
#define _IP_SET_MODULE_DESC(a, b, c) \
MODULE_DESCRIPTION(a " type of IP sets, revisions " b "-" c)
#define IP_SET_MODULE_DESC(a, b, c) \
_IP_SET_MODULE_DESC(a, __stringify(b), __stringify(c))
/* Set features */
enum
ip_set_feature
{
IPSET_TYPE_IP_FLAG
=
0
,
...
...
net/netfilter/ipset/ip_set_bitmap_ip.c
浏览文件 @
10111a6e
...
...
@@ -27,9 +27,12 @@
#define IP_SET_BITMAP_TIMEOUT
#include <linux/netfilter/ipset/ip_set_timeout.h>
#define REVISION_MIN 0
#define REVISION_MAX 0
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"bitmap:ip type of IP sets"
);
IP_SET_MODULE_DESC
(
"bitmap:ip"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_bitmap:ip"
);
/* Type structure */
...
...
@@ -556,8 +559,8 @@ static struct ip_set_type bitmap_ip_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
,
.
dimension
=
IPSET_DIM_ONE
,
.
family
=
NFPROTO_IPV4
,
.
revision_min
=
0
,
.
revision_max
=
0
,
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
bitmap_ip_create
,
.
create_policy
=
{
[
IPSET_ATTR_IP
]
=
{
.
type
=
NLA_NESTED
},
...
...
net/netfilter/ipset/ip_set_bitmap_ipmac.c
浏览文件 @
10111a6e
...
...
@@ -26,9 +26,12 @@
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_bitmap.h>
#define REVISION_MIN 0
#define REVISION_MAX 0
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"bitmap:ip,mac type of IP sets"
);
IP_SET_MODULE_DESC
(
"bitmap:ip,mac"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_bitmap:ip,mac"
);
enum
{
...
...
@@ -630,8 +633,8 @@ static struct ip_set_type bitmap_ipmac_type = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_MAC
,
.
dimension
=
IPSET_DIM_TWO
,
.
family
=
NFPROTO_IPV4
,
.
revision_min
=
0
,
.
revision_max
=
0
,
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
bitmap_ipmac_create
,
.
create_policy
=
{
[
IPSET_ATTR_IP
]
=
{
.
type
=
NLA_NESTED
},
...
...
net/netfilter/ipset/ip_set_bitmap_port.c
浏览文件 @
10111a6e
...
...
@@ -22,9 +22,12 @@
#define IP_SET_BITMAP_TIMEOUT
#include <linux/netfilter/ipset/ip_set_timeout.h>
#define REVISION_MIN 0
#define REVISION_MAX 0
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"bitmap:port type of IP sets"
);
IP_SET_MODULE_DESC
(
"bitmap:port"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_bitmap:port"
);
/* Type structure */
...
...
@@ -487,8 +490,8 @@ static struct ip_set_type bitmap_port_type = {
.
features
=
IPSET_TYPE_PORT
,
.
dimension
=
IPSET_DIM_ONE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
.
revision_max
=
0
,
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
bitmap_port_create
,
.
create_policy
=
{
[
IPSET_ATTR_PORT
]
=
{
.
type
=
NLA_U16
},
...
...
net/netfilter/ipset/ip_set_hash_ip.c
浏览文件 @
10111a6e
...
...
@@ -24,9 +24,12 @@
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
#define REVISION_MAX 0
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:ip type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:ip"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:ip"
);
/* Type specific function prefix */
...
...
@@ -452,8 +455,8 @@ static struct ip_set_type hash_ip_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
,
.
dimension
=
IPSET_DIM_ONE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
.
revision_max
=
0
,
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_ip_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_ipport.c
浏览文件 @
10111a6e
...
...
@@ -25,9 +25,12 @@
#include <linux/netfilter/ipset/ip_set_getport.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
#define REVISION_MAX 1
/* SCTP and UDPLITE support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:ip,port type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:ip,port"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:ip,port"
);
/* Type specific function prefix */
...
...
@@ -523,8 +526,8 @@ static struct ip_set_type hash_ipport_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_PORT
,
.
dimension
=
IPSET_DIM_TWO
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
.
revision_max
=
1
,
/* SCTP and UDPLITE support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_ipport_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_ipportip.c
浏览文件 @
10111a6e
...
...
@@ -25,9 +25,12 @@
#include <linux/netfilter/ipset/ip_set_getport.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
#define REVISION_MAX 1
/* SCTP and UDPLITE support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:ip,port,ip type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:ip,port,ip"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:ip,port,ip"
);
/* Type specific function prefix */
...
...
@@ -541,8 +544,8 @@ static struct ip_set_type hash_ipportip_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_PORT
|
IPSET_TYPE_IP2
,
.
dimension
=
IPSET_DIM_THREE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
.
revision_max
=
1
,
/* SCTP and UDPLITE support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_ipportip_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_ipportnet.c
浏览文件 @
10111a6e
...
...
@@ -25,9 +25,14 @@
#include <linux/netfilter/ipset/ip_set_getport.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
/* 1 SCTP and UDPLITE support added */
/* 2 Range as input support for IPv4 added */
#define REVISION_MAX 3
/* nomatch flag support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:ip,port,net type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:ip,port,net"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:ip,port,net"
);
/* Type specific function prefix */
...
...
@@ -695,10 +700,8 @@ static struct ip_set_type hash_ipportnet_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_PORT
|
IPSET_TYPE_IP2
,
.
dimension
=
IPSET_DIM_THREE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
/* 1 SCTP and UDPLITE support added */
/* 2 Range as input support for IPv4 added */
.
revision_max
=
3
,
/* nomatch flag support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_ipportnet_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_net.c
浏览文件 @
10111a6e
...
...
@@ -23,9 +23,13 @@
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
/* 1 Range as input support for IPv4 added */
#define REVISION_MAX 2
/* nomatch flag support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:net type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:net"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:net"
);
/* Type specific function prefix */
...
...
@@ -535,9 +539,8 @@ static struct ip_set_type hash_net_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
,
.
dimension
=
IPSET_DIM_ONE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
/* = 1 Range as input support for IPv4 added */
.
revision_max
=
2
,
/* nomatch flag support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_net_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_netiface.c
浏览文件 @
10111a6e
...
...
@@ -24,9 +24,13 @@
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
/* 1 nomatch flag support added */
#define REVISION_MAX 2
/* /0 support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:net,iface type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:net,iface"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:net,iface"
);
/* Interface name rbtree */
...
...
@@ -773,9 +777,8 @@ static struct ip_set_type hash_netiface_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_IFACE
,
.
dimension
=
IPSET_DIM_TWO
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
/* = 1, nomatch flag support added */
.
revision_max
=
2
,
/* /0 support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_netiface_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_hash_netport.c
浏览文件 @
10111a6e
...
...
@@ -24,9 +24,14 @@
#include <linux/netfilter/ipset/ip_set_getport.h>
#include <linux/netfilter/ipset/ip_set_hash.h>
#define REVISION_MIN 0
/* 1 SCTP and UDPLITE support added */
/* 2 Range as input support for IPv4 added */
#define REVISION_MAX 3
/* nomatch flag support added */
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"hash:net,port type of IP sets"
);
IP_SET_MODULE_DESC
(
"hash:net,port"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_hash:net,port"
);
/* Type specific function prefix */
...
...
@@ -648,10 +653,8 @@ static struct ip_set_type hash_netport_type __read_mostly = {
.
features
=
IPSET_TYPE_IP
|
IPSET_TYPE_PORT
,
.
dimension
=
IPSET_DIM_TWO
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
/* 1 SCTP and UDPLITE support added */
/* 2, Range as input support for IPv4 added */
.
revision_max
=
3
,
/* nomatch flag support added */
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
hash_netport_create
,
.
create_policy
=
{
[
IPSET_ATTR_HASHSIZE
]
=
{
.
type
=
NLA_U32
},
...
...
net/netfilter/ipset/ip_set_list_set.c
浏览文件 @
10111a6e
...
...
@@ -16,9 +16,12 @@
#include <linux/netfilter/ipset/ip_set_timeout.h>
#include <linux/netfilter/ipset/ip_set_list.h>
#define REVISION_MIN 0
#define REVISION_MAX 0
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>"
);
MODULE_DESCRIPTION
(
"list:set type of IP sets"
);
IP_SET_MODULE_DESC
(
"list:set"
,
REVISION_MIN
,
REVISION_MAX
);
MODULE_ALIAS
(
"ip_set_list:set"
);
/* Member elements without and with timeout */
...
...
@@ -579,8 +582,8 @@ static struct ip_set_type list_set_type __read_mostly = {
.
features
=
IPSET_TYPE_NAME
|
IPSET_DUMP_LAST
,
.
dimension
=
IPSET_DIM_ONE
,
.
family
=
NFPROTO_UNSPEC
,
.
revision_min
=
0
,
.
revision_max
=
0
,
.
revision_min
=
REVISION_MIN
,
.
revision_max
=
REVISION_MAX
,
.
create
=
list_set_create
,
.
create_policy
=
{
[
IPSET_ATTR_SIZE
]
=
{
.
type
=
NLA_U32
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录