diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-18 01:37:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:56 -0500 |
commit | 2b628a0866860d44652362aafe403e5b5895583d (patch) | |
tree | bb548f5ad7b7f932f8a8a52ff1922316750ae0ae /include | |
parent | 3ee9e760387c38558df976bc2905959826adf331 (diff) |
[NETFILTER]: nf_nat: mark NAT protocols const
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_nat_protocol.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/net/netfilter/nf_nat_protocol.h b/include/net/netfilter/nf_nat_protocol.h index 04578bfe23e1..4aa0edbb5b96 100644 --- a/include/net/netfilter/nf_nat_protocol.h +++ b/include/net/netfilter/nf_nat_protocol.h | |||
@@ -46,21 +46,21 @@ struct nf_nat_protocol | |||
46 | }; | 46 | }; |
47 | 47 | ||
48 | /* Protocol registration. */ | 48 | /* Protocol registration. */ |
49 | extern int nf_nat_protocol_register(struct nf_nat_protocol *proto); | 49 | extern int nf_nat_protocol_register(const struct nf_nat_protocol *proto); |
50 | extern void nf_nat_protocol_unregister(struct nf_nat_protocol *proto); | 50 | extern void nf_nat_protocol_unregister(const struct nf_nat_protocol *proto); |
51 | 51 | ||
52 | extern struct nf_nat_protocol *nf_nat_proto_find_get(u_int8_t protocol); | 52 | extern const struct nf_nat_protocol *nf_nat_proto_find_get(u_int8_t protocol); |
53 | extern void nf_nat_proto_put(struct nf_nat_protocol *proto); | 53 | extern void nf_nat_proto_put(const struct nf_nat_protocol *proto); |
54 | 54 | ||
55 | /* Built-in protocols. */ | 55 | /* Built-in protocols. */ |
56 | extern struct nf_nat_protocol nf_nat_protocol_tcp; | 56 | extern const struct nf_nat_protocol nf_nat_protocol_tcp; |
57 | extern struct nf_nat_protocol nf_nat_protocol_udp; | 57 | extern const struct nf_nat_protocol nf_nat_protocol_udp; |
58 | extern struct nf_nat_protocol nf_nat_protocol_icmp; | 58 | extern const struct nf_nat_protocol nf_nat_protocol_icmp; |
59 | extern struct nf_nat_protocol nf_nat_unknown_protocol; | 59 | extern const struct nf_nat_protocol nf_nat_unknown_protocol; |
60 | 60 | ||
61 | extern int init_protocols(void) __init; | 61 | extern int init_protocols(void) __init; |
62 | extern void cleanup_protocols(void); | 62 | extern void cleanup_protocols(void); |
63 | extern struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); | 63 | extern const struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); |
64 | 64 | ||
65 | extern int nf_nat_port_range_to_nlattr(struct sk_buff *skb, | 65 | extern int nf_nat_port_range_to_nlattr(struct sk_buff *skb, |
66 | const struct nf_nat_range *range); | 66 | const struct nf_nat_range *range); |