diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2008-04-14 05:15:53 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:15:53 -0400 |
commit | f2ea825f483d5d78754ae813b6db63f8b74e9343 (patch) | |
tree | 9a71a03a99443078a14aad195fb6c15cbb3920c8 /include | |
parent | 5f2b4c9006fc667c4614f0b079efab3721f68316 (diff) |
[NETFILTER]: nf_nat: use bool type in nf_nat_proto
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_nat_protocol.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/include/net/netfilter/nf_nat_protocol.h b/include/net/netfilter/nf_nat_protocol.h index fba94a2028d5..f3662c4394ef 100644 --- a/include/net/netfilter/nf_nat_protocol.h +++ b/include/net/netfilter/nf_nat_protocol.h | |||
@@ -15,25 +15,25 @@ struct nf_nat_protocol | |||
15 | 15 | ||
16 | /* Translate a packet to the target according to manip type. | 16 | /* Translate a packet to the target according to manip type. |
17 | Return true if succeeded. */ | 17 | Return true if succeeded. */ |
18 | int (*manip_pkt)(struct sk_buff *skb, | 18 | bool (*manip_pkt)(struct sk_buff *skb, |
19 | unsigned int iphdroff, | 19 | unsigned int iphdroff, |
20 | const struct nf_conntrack_tuple *tuple, | 20 | const struct nf_conntrack_tuple *tuple, |
21 | enum nf_nat_manip_type maniptype); | 21 | enum nf_nat_manip_type maniptype); |
22 | 22 | ||
23 | /* Is the manipable part of the tuple between min and max incl? */ | 23 | /* Is the manipable part of the tuple between min and max incl? */ |
24 | int (*in_range)(const struct nf_conntrack_tuple *tuple, | 24 | bool (*in_range)(const struct nf_conntrack_tuple *tuple, |
25 | enum nf_nat_manip_type maniptype, | 25 | enum nf_nat_manip_type maniptype, |
26 | const union nf_conntrack_man_proto *min, | 26 | const union nf_conntrack_man_proto *min, |
27 | const union nf_conntrack_man_proto *max); | 27 | const union nf_conntrack_man_proto *max); |
28 | 28 | ||
29 | /* Alter the per-proto part of the tuple (depending on | 29 | /* Alter the per-proto part of the tuple (depending on |
30 | maniptype), to give a unique tuple in the given range if | 30 | maniptype), to give a unique tuple in the given range if |
31 | possible; return false if not. Per-protocol part of tuple | 31 | possible; return false if not. Per-protocol part of tuple |
32 | is initialized to the incoming packet. */ | 32 | is initialized to the incoming packet. */ |
33 | int (*unique_tuple)(struct nf_conntrack_tuple *tuple, | 33 | bool (*unique_tuple)(struct nf_conntrack_tuple *tuple, |
34 | const struct nf_nat_range *range, | 34 | const struct nf_nat_range *range, |
35 | enum nf_nat_manip_type maniptype, | 35 | enum nf_nat_manip_type maniptype, |
36 | const struct nf_conn *ct); | 36 | const struct nf_conn *ct); |
37 | 37 | ||
38 | int (*range_to_nlattr)(struct sk_buff *skb, | 38 | int (*range_to_nlattr)(struct sk_buff *skb, |
39 | const struct nf_nat_range *range); | 39 | const struct nf_nat_range *range); |
@@ -59,16 +59,16 @@ extern int init_protocols(void) __init; | |||
59 | extern void cleanup_protocols(void); | 59 | extern void cleanup_protocols(void); |
60 | extern const struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); | 60 | extern const struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); |
61 | 61 | ||
62 | extern int nf_nat_proto_in_range(const struct nf_conntrack_tuple *tuple, | 62 | extern bool nf_nat_proto_in_range(const struct nf_conntrack_tuple *tuple, |
63 | enum nf_nat_manip_type maniptype, | 63 | enum nf_nat_manip_type maniptype, |
64 | const union nf_conntrack_man_proto *min, | 64 | const union nf_conntrack_man_proto *min, |
65 | const union nf_conntrack_man_proto *max); | 65 | const union nf_conntrack_man_proto *max); |
66 | 66 | ||
67 | extern int nf_nat_proto_unique_tuple(struct nf_conntrack_tuple *tuple, | 67 | extern bool nf_nat_proto_unique_tuple(struct nf_conntrack_tuple *tuple, |
68 | const struct nf_nat_range *range, | 68 | const struct nf_nat_range *range, |
69 | enum nf_nat_manip_type maniptype, | 69 | enum nf_nat_manip_type maniptype, |
70 | const struct nf_conn *ct, | 70 | const struct nf_conn *ct, |
71 | u_int16_t *rover); | 71 | u_int16_t *rover); |
72 | 72 | ||
73 | extern int nf_nat_proto_range_to_nlattr(struct sk_buff *skb, | 73 | extern int nf_nat_proto_range_to_nlattr(struct sk_buff *skb, |
74 | const struct nf_nat_range *range); | 74 | const struct nf_nat_range *range); |