diff options
author | Richard Weinberger <richard@nod.at> | 2015-04-12 18:52:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-13 16:35:16 -0400 |
commit | cc6bc4486346aedbdc9ae293c0c675fd29777a98 (patch) | |
tree | 12525b984eb897324afc11ffe6964a2fcf670755 /net | |
parent | 65bc4f936e6f1c7de59938e832701faa903d2d45 (diff) |
netfilter: Fix portid types
The netlink portid is an unsigned integer, use this type
also in netfilter.
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 4 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue_core.c | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 51afea4b0af7..5c7973594db4 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -63,7 +63,7 @@ struct nfulnl_instance { | |||
63 | struct timer_list timer; | 63 | struct timer_list timer; |
64 | struct net *net; | 64 | struct net *net; |
65 | struct user_namespace *peer_user_ns; /* User namespace of the peer process */ | 65 | struct user_namespace *peer_user_ns; /* User namespace of the peer process */ |
66 | int peer_portid; /* PORTID of the peer process */ | 66 | u32 peer_portid; /* PORTID of the peer process */ |
67 | 67 | ||
68 | /* configurable parameters */ | 68 | /* configurable parameters */ |
69 | unsigned int flushtimeout; /* timeout until queue flush */ | 69 | unsigned int flushtimeout; /* timeout until queue flush */ |
@@ -152,7 +152,7 @@ static void nfulnl_timer(unsigned long data); | |||
152 | 152 | ||
153 | static struct nfulnl_instance * | 153 | static struct nfulnl_instance * |
154 | instance_create(struct net *net, u_int16_t group_num, | 154 | instance_create(struct net *net, u_int16_t group_num, |
155 | int portid, struct user_namespace *user_ns) | 155 | u32 portid, struct user_namespace *user_ns) |
156 | { | 156 | { |
157 | struct nfulnl_instance *inst; | 157 | struct nfulnl_instance *inst; |
158 | struct nfnl_log_net *log = nfnl_log_pernet(net); | 158 | struct nfnl_log_net *log = nfnl_log_pernet(net); |
diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c index 628afc350c02..49267f8e33b1 100644 --- a/net/netfilter/nfnetlink_queue_core.c +++ b/net/netfilter/nfnetlink_queue_core.c | |||
@@ -55,7 +55,7 @@ struct nfqnl_instance { | |||
55 | struct hlist_node hlist; /* global list of queues */ | 55 | struct hlist_node hlist; /* global list of queues */ |
56 | struct rcu_head rcu; | 56 | struct rcu_head rcu; |
57 | 57 | ||
58 | int peer_portid; | 58 | u32 peer_portid; |
59 | unsigned int queue_maxlen; | 59 | unsigned int queue_maxlen; |
60 | unsigned int copy_range; | 60 | unsigned int copy_range; |
61 | unsigned int queue_dropped; | 61 | unsigned int queue_dropped; |
@@ -110,8 +110,7 @@ instance_lookup(struct nfnl_queue_net *q, u_int16_t queue_num) | |||
110 | } | 110 | } |
111 | 111 | ||
112 | static struct nfqnl_instance * | 112 | static struct nfqnl_instance * |
113 | instance_create(struct nfnl_queue_net *q, u_int16_t queue_num, | 113 | instance_create(struct nfnl_queue_net *q, u_int16_t queue_num, u32 portid) |
114 | int portid) | ||
115 | { | 114 | { |
116 | struct nfqnl_instance *inst; | 115 | struct nfqnl_instance *inst; |
117 | unsigned int h; | 116 | unsigned int h; |
@@ -870,7 +869,7 @@ static const struct nla_policy nfqa_verdict_batch_policy[NFQA_MAX+1] = { | |||
870 | }; | 869 | }; |
871 | 870 | ||
872 | static struct nfqnl_instance * | 871 | static struct nfqnl_instance * |
873 | verdict_instance_lookup(struct nfnl_queue_net *q, u16 queue_num, int nlportid) | 872 | verdict_instance_lookup(struct nfnl_queue_net *q, u16 queue_num, u32 nlportid) |
874 | { | 873 | { |
875 | struct nfqnl_instance *queue; | 874 | struct nfqnl_instance *queue; |
876 | 875 | ||