diff options
author | Joe Perches <joe@perches.com> | 2013-09-26 17:48:15 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-26 17:48:15 -0400 |
commit | a0f4ecf3494c9869d20f606e7e2b2f50f0e67a7f (patch) | |
tree | dd4a24c0eddda03b87ad0fd873ba4b5ebbbab6cf | |
parent | aae8c287e664d49df4aa315ad263c33b9a2af3e1 (diff) |
netfilter: Remove extern from function prototypes
There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.
Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: Joe Perches <joe@perches.com>
-rw-r--r-- | include/linux/netfilter.h | 10 | ||||
-rw-r--r-- | include/linux/netfilter/nf_conntrack_common.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter/nf_conntrack_h323.h | 14 | ||||
-rw-r--r-- | include/linux/netfilter/nf_conntrack_proto_gre.h | 4 | ||||
-rw-r--r-- | include/linux/netfilter/nf_conntrack_sip.h | 57 | ||||
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 28 | ||||
-rw-r--r-- | include/linux/netfilter/nfnetlink_acct.h | 6 | ||||
-rw-r--r-- | include/linux/netfilter/x_tables.h | 128 | ||||
-rw-r--r-- | include/linux/netfilter_bridge.h | 4 | ||||
-rw-r--r-- | include/linux/netfilter_ipv4.h | 6 | ||||
-rw-r--r-- | include/linux/netfilter_ipv6.h | 10 |
11 files changed, 133 insertions, 136 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 708fe72ab913..61223c52414f 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
@@ -35,7 +35,7 @@ static inline void nf_inet_addr_mask(const union nf_inet_addr *a1, | |||
35 | result->all[3] = a1->all[3] & mask->all[3]; | 35 | result->all[3] = a1->all[3] & mask->all[3]; |
36 | } | 36 | } |
37 | 37 | ||
38 | extern int netfilter_init(void); | 38 | int netfilter_init(void); |
39 | 39 | ||
40 | /* Largest hook number + 1 */ | 40 | /* Largest hook number + 1 */ |
41 | #define NF_MAX_HOOKS 8 | 41 | #define NF_MAX_HOOKS 8 |
@@ -208,7 +208,7 @@ int compat_nf_getsockopt(struct sock *sk, u_int8_t pf, int optval, | |||
208 | /* Call this before modifying an existing packet: ensures it is | 208 | /* Call this before modifying an existing packet: ensures it is |
209 | modifiable and linear to the point you care about (writable_len). | 209 | modifiable and linear to the point you care about (writable_len). |
210 | Returns true or false. */ | 210 | Returns true or false. */ |
211 | extern int skb_make_writable(struct sk_buff *skb, unsigned int writable_len); | 211 | int skb_make_writable(struct sk_buff *skb, unsigned int writable_len); |
212 | 212 | ||
213 | struct flowi; | 213 | struct flowi; |
214 | struct nf_queue_entry; | 214 | struct nf_queue_entry; |
@@ -269,8 +269,8 @@ nf_checksum_partial(struct sk_buff *skb, unsigned int hook, | |||
269 | return csum; | 269 | return csum; |
270 | } | 270 | } |
271 | 271 | ||
272 | extern int nf_register_afinfo(const struct nf_afinfo *afinfo); | 272 | int nf_register_afinfo(const struct nf_afinfo *afinfo); |
273 | extern void nf_unregister_afinfo(const struct nf_afinfo *afinfo); | 273 | void nf_unregister_afinfo(const struct nf_afinfo *afinfo); |
274 | 274 | ||
275 | #include <net/flow.h> | 275 | #include <net/flow.h> |
276 | extern void (*nf_nat_decode_session_hook)(struct sk_buff *, struct flowi *); | 276 | extern void (*nf_nat_decode_session_hook)(struct sk_buff *, struct flowi *); |
@@ -315,7 +315,7 @@ nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) | |||
315 | 315 | ||
316 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | 316 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) |
317 | extern void (*ip_ct_attach)(struct sk_buff *, const struct sk_buff *) __rcu; | 317 | extern void (*ip_ct_attach)(struct sk_buff *, const struct sk_buff *) __rcu; |
318 | extern void nf_ct_attach(struct sk_buff *, const struct sk_buff *); | 318 | void nf_ct_attach(struct sk_buff *, const struct sk_buff *); |
319 | extern void (*nf_ct_destroy)(struct nf_conntrack *) __rcu; | 319 | extern void (*nf_ct_destroy)(struct nf_conntrack *) __rcu; |
320 | 320 | ||
321 | struct nf_conn; | 321 | struct nf_conn; |
diff --git a/include/linux/netfilter/nf_conntrack_common.h b/include/linux/netfilter/nf_conntrack_common.h index 127d0b90604f..275505792664 100644 --- a/include/linux/netfilter/nf_conntrack_common.h +++ b/include/linux/netfilter/nf_conntrack_common.h | |||
@@ -23,6 +23,6 @@ struct ip_conntrack_stat { | |||
23 | }; | 23 | }; |
24 | 24 | ||
25 | /* call to create an explicit dependency on nf_conntrack. */ | 25 | /* call to create an explicit dependency on nf_conntrack. */ |
26 | extern void need_conntrack(void); | 26 | void need_conntrack(void); |
27 | 27 | ||
28 | #endif /* _NF_CONNTRACK_COMMON_H */ | 28 | #endif /* _NF_CONNTRACK_COMMON_H */ |
diff --git a/include/linux/netfilter/nf_conntrack_h323.h b/include/linux/netfilter/nf_conntrack_h323.h index f381020eee92..858d9b214053 100644 --- a/include/linux/netfilter/nf_conntrack_h323.h +++ b/include/linux/netfilter/nf_conntrack_h323.h | |||
@@ -29,13 +29,13 @@ struct nf_ct_h323_master { | |||
29 | 29 | ||
30 | struct nf_conn; | 30 | struct nf_conn; |
31 | 31 | ||
32 | extern int get_h225_addr(struct nf_conn *ct, unsigned char *data, | 32 | int get_h225_addr(struct nf_conn *ct, unsigned char *data, |
33 | TransportAddress *taddr, | 33 | TransportAddress *taddr, union nf_inet_addr *addr, |
34 | union nf_inet_addr *addr, __be16 *port); | 34 | __be16 *port); |
35 | extern void nf_conntrack_h245_expect(struct nf_conn *new, | 35 | void nf_conntrack_h245_expect(struct nf_conn *new, |
36 | struct nf_conntrack_expect *this); | 36 | struct nf_conntrack_expect *this); |
37 | extern void nf_conntrack_q931_expect(struct nf_conn *new, | 37 | void nf_conntrack_q931_expect(struct nf_conn *new, |
38 | struct nf_conntrack_expect *this); | 38 | struct nf_conntrack_expect *this); |
39 | extern int (*set_h245_addr_hook) (struct sk_buff *skb, unsigned int protoff, | 39 | extern int (*set_h245_addr_hook) (struct sk_buff *skb, unsigned int protoff, |
40 | unsigned char **data, int dataoff, | 40 | unsigned char **data, int dataoff, |
41 | H245_TransportAddress *taddr, | 41 | H245_TransportAddress *taddr, |
diff --git a/include/linux/netfilter/nf_conntrack_proto_gre.h b/include/linux/netfilter/nf_conntrack_proto_gre.h index 6a0664c0c451..ec2ffaf418c8 100644 --- a/include/linux/netfilter/nf_conntrack_proto_gre.h +++ b/include/linux/netfilter/nf_conntrack_proto_gre.h | |||
@@ -87,8 +87,8 @@ int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, | |||
87 | /* delete keymap entries */ | 87 | /* delete keymap entries */ |
88 | void nf_ct_gre_keymap_destroy(struct nf_conn *ct); | 88 | void nf_ct_gre_keymap_destroy(struct nf_conn *ct); |
89 | 89 | ||
90 | extern void nf_ct_gre_keymap_flush(struct net *net); | 90 | void nf_ct_gre_keymap_flush(struct net *net); |
91 | extern void nf_nat_need_gre(void); | 91 | void nf_nat_need_gre(void); |
92 | 92 | ||
93 | #endif /* __KERNEL__ */ | 93 | #endif /* __KERNEL__ */ |
94 | #endif /* _CONNTRACK_PROTO_GRE_H */ | 94 | #endif /* _CONNTRACK_PROTO_GRE_H */ |
diff --git a/include/linux/netfilter/nf_conntrack_sip.h b/include/linux/netfilter/nf_conntrack_sip.h index ba7f571a2b1c..5cac0207b95d 100644 --- a/include/linux/netfilter/nf_conntrack_sip.h +++ b/include/linux/netfilter/nf_conntrack_sip.h | |||
@@ -157,35 +157,34 @@ extern unsigned int (*nf_nat_sdp_media_hook)(struct sk_buff *skb, | |||
157 | unsigned int medialen, | 157 | unsigned int medialen, |
158 | union nf_inet_addr *rtp_addr); | 158 | union nf_inet_addr *rtp_addr); |
159 | 159 | ||
160 | extern int ct_sip_parse_request(const struct nf_conn *ct, | 160 | int ct_sip_parse_request(const struct nf_conn *ct, const char *dptr, |
161 | const char *dptr, unsigned int datalen, | 161 | unsigned int datalen, unsigned int *matchoff, |
162 | unsigned int *matchoff, unsigned int *matchlen, | 162 | unsigned int *matchlen, union nf_inet_addr *addr, |
163 | union nf_inet_addr *addr, __be16 *port); | 163 | __be16 *port); |
164 | extern int ct_sip_get_header(const struct nf_conn *ct, const char *dptr, | 164 | int ct_sip_get_header(const struct nf_conn *ct, const char *dptr, |
165 | unsigned int dataoff, unsigned int datalen, | 165 | unsigned int dataoff, unsigned int datalen, |
166 | enum sip_header_types type, | 166 | enum sip_header_types type, unsigned int *matchoff, |
167 | unsigned int *matchoff, unsigned int *matchlen); | 167 | unsigned int *matchlen); |
168 | extern int ct_sip_parse_header_uri(const struct nf_conn *ct, const char *dptr, | 168 | int ct_sip_parse_header_uri(const struct nf_conn *ct, const char *dptr, |
169 | unsigned int *dataoff, unsigned int datalen, | 169 | unsigned int *dataoff, unsigned int datalen, |
170 | enum sip_header_types type, int *in_header, | 170 | enum sip_header_types type, int *in_header, |
171 | unsigned int *matchoff, unsigned int *matchlen, | 171 | unsigned int *matchoff, unsigned int *matchlen, |
172 | union nf_inet_addr *addr, __be16 *port); | 172 | union nf_inet_addr *addr, __be16 *port); |
173 | extern int ct_sip_parse_address_param(const struct nf_conn *ct, const char *dptr, | 173 | int ct_sip_parse_address_param(const struct nf_conn *ct, const char *dptr, |
174 | unsigned int dataoff, unsigned int datalen, | 174 | unsigned int dataoff, unsigned int datalen, |
175 | const char *name, | 175 | const char *name, unsigned int *matchoff, |
176 | unsigned int *matchoff, unsigned int *matchlen, | 176 | unsigned int *matchlen, union nf_inet_addr *addr, |
177 | union nf_inet_addr *addr, bool delim); | 177 | bool delim); |
178 | extern int ct_sip_parse_numerical_param(const struct nf_conn *ct, const char *dptr, | 178 | int ct_sip_parse_numerical_param(const struct nf_conn *ct, const char *dptr, |
179 | unsigned int off, unsigned int datalen, | 179 | unsigned int off, unsigned int datalen, |
180 | const char *name, | 180 | const char *name, unsigned int *matchoff, |
181 | unsigned int *matchoff, unsigned int *matchen, | 181 | unsigned int *matchen, unsigned int *val); |
182 | unsigned int *val); | 182 | |
183 | 183 | int ct_sip_get_sdp_header(const struct nf_conn *ct, const char *dptr, | |
184 | extern int ct_sip_get_sdp_header(const struct nf_conn *ct, const char *dptr, | 184 | unsigned int dataoff, unsigned int datalen, |
185 | unsigned int dataoff, unsigned int datalen, | 185 | enum sdp_header_types type, |
186 | enum sdp_header_types type, | 186 | enum sdp_header_types term, |
187 | enum sdp_header_types term, | 187 | unsigned int *matchoff, unsigned int *matchlen); |
188 | unsigned int *matchoff, unsigned int *matchlen); | ||
189 | 188 | ||
190 | #endif /* __KERNEL__ */ | 189 | #endif /* __KERNEL__ */ |
191 | #endif /* __NF_CONNTRACK_SIP_H__ */ | 190 | #endif /* __NF_CONNTRACK_SIP_H__ */ |
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index cadb7402d7a7..4f68cd7141d2 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h | |||
@@ -25,20 +25,20 @@ struct nfnetlink_subsystem { | |||
25 | const struct nfnl_callback *cb; /* callback for individual types */ | 25 | const struct nfnl_callback *cb; /* callback for individual types */ |
26 | }; | 26 | }; |
27 | 27 | ||
28 | extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n); | 28 | int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n); |
29 | extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); | 29 | int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); |
30 | 30 | ||
31 | extern int nfnetlink_has_listeners(struct net *net, unsigned int group); | 31 | int nfnetlink_has_listeners(struct net *net, unsigned int group); |
32 | extern struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, | 32 | struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, |
33 | u32 dst_portid, gfp_t gfp_mask); | 33 | u32 dst_portid, gfp_t gfp_mask); |
34 | extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, | 34 | int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, |
35 | unsigned int group, int echo, gfp_t flags); | 35 | unsigned int group, int echo, gfp_t flags); |
36 | extern int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error); | 36 | int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error); |
37 | extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, | 37 | int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, |
38 | u32 portid, int flags); | 38 | int flags); |
39 | 39 | ||
40 | extern void nfnl_lock(__u8 subsys_id); | 40 | void nfnl_lock(__u8 subsys_id); |
41 | extern void nfnl_unlock(__u8 subsys_id); | 41 | void nfnl_unlock(__u8 subsys_id); |
42 | 42 | ||
43 | #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ | 43 | #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ |
44 | MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys)) | 44 | MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys)) |
diff --git a/include/linux/netfilter/nfnetlink_acct.h b/include/linux/netfilter/nfnetlink_acct.h index bb4bbc9b7a18..b2e85e59f760 100644 --- a/include/linux/netfilter/nfnetlink_acct.h +++ b/include/linux/netfilter/nfnetlink_acct.h | |||
@@ -6,8 +6,8 @@ | |||
6 | 6 | ||
7 | struct nf_acct; | 7 | struct nf_acct; |
8 | 8 | ||
9 | extern struct nf_acct *nfnl_acct_find_get(const char *filter_name); | 9 | struct nf_acct *nfnl_acct_find_get(const char *filter_name); |
10 | extern void nfnl_acct_put(struct nf_acct *acct); | 10 | void nfnl_acct_put(struct nf_acct *acct); |
11 | extern void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct); | 11 | void nfnl_acct_update(const struct sk_buff *skb, struct nf_acct *nfacct); |
12 | 12 | ||
13 | #endif /* _NFNL_ACCT_H */ | 13 | #endif /* _NFNL_ACCT_H */ |
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index dd49566315c6..a3e215bb0241 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h | |||
@@ -229,50 +229,48 @@ struct xt_table_info { | |||
229 | 229 | ||
230 | #define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \ | 230 | #define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \ |
231 | + nr_cpu_ids * sizeof(char *)) | 231 | + nr_cpu_ids * sizeof(char *)) |
232 | extern int xt_register_target(struct xt_target *target); | 232 | int xt_register_target(struct xt_target *target); |
233 | extern void xt_unregister_target(struct xt_target *target); | 233 | void xt_unregister_target(struct xt_target *target); |
234 | extern int xt_register_targets(struct xt_target *target, unsigned int n); | 234 | int xt_register_targets(struct xt_target *target, unsigned int n); |
235 | extern void xt_unregister_targets(struct xt_target *target, unsigned int n); | 235 | void xt_unregister_targets(struct xt_target *target, unsigned int n); |
236 | 236 | ||
237 | extern int xt_register_match(struct xt_match *target); | 237 | int xt_register_match(struct xt_match *target); |
238 | extern void xt_unregister_match(struct xt_match *target); | 238 | void xt_unregister_match(struct xt_match *target); |
239 | extern int xt_register_matches(struct xt_match *match, unsigned int n); | 239 | int xt_register_matches(struct xt_match *match, unsigned int n); |
240 | extern void xt_unregister_matches(struct xt_match *match, unsigned int n); | 240 | void xt_unregister_matches(struct xt_match *match, unsigned int n); |
241 | 241 | ||
242 | extern int xt_check_match(struct xt_mtchk_param *, | 242 | int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto, |
243 | unsigned int size, u_int8_t proto, bool inv_proto); | 243 | bool inv_proto); |
244 | extern int xt_check_target(struct xt_tgchk_param *, | 244 | int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto, |
245 | unsigned int size, u_int8_t proto, bool inv_proto); | 245 | bool inv_proto); |
246 | 246 | ||
247 | extern struct xt_table *xt_register_table(struct net *net, | 247 | struct xt_table *xt_register_table(struct net *net, |
248 | const struct xt_table *table, | 248 | const struct xt_table *table, |
249 | struct xt_table_info *bootstrap, | 249 | struct xt_table_info *bootstrap, |
250 | struct xt_table_info *newinfo); | 250 | struct xt_table_info *newinfo); |
251 | extern void *xt_unregister_table(struct xt_table *table); | 251 | void *xt_unregister_table(struct xt_table *table); |
252 | 252 | ||
253 | extern struct xt_table_info *xt_replace_table(struct xt_table *table, | 253 | struct xt_table_info *xt_replace_table(struct xt_table *table, |
254 | unsigned int num_counters, | 254 | unsigned int num_counters, |
255 | struct xt_table_info *newinfo, | 255 | struct xt_table_info *newinfo, |
256 | int *error); | 256 | int *error); |
257 | 257 | ||
258 | extern struct xt_match *xt_find_match(u8 af, const char *name, u8 revision); | 258 | struct xt_match *xt_find_match(u8 af, const char *name, u8 revision); |
259 | extern struct xt_target *xt_find_target(u8 af, const char *name, u8 revision); | 259 | struct xt_target *xt_find_target(u8 af, const char *name, u8 revision); |
260 | extern struct xt_match *xt_request_find_match(u8 af, const char *name, | 260 | struct xt_match *xt_request_find_match(u8 af, const char *name, u8 revision); |
261 | u8 revision); | 261 | struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision); |
262 | extern struct xt_target *xt_request_find_target(u8 af, const char *name, | 262 | int xt_find_revision(u8 af, const char *name, u8 revision, int target, |
263 | u8 revision); | 263 | int *err); |
264 | extern int xt_find_revision(u8 af, const char *name, u8 revision, | 264 | |
265 | int target, int *err); | 265 | struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af, |
266 | 266 | const char *name); | |
267 | extern struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af, | 267 | void xt_table_unlock(struct xt_table *t); |
268 | const char *name); | 268 | |
269 | extern void xt_table_unlock(struct xt_table *t); | 269 | int xt_proto_init(struct net *net, u_int8_t af); |
270 | 270 | void xt_proto_fini(struct net *net, u_int8_t af); | |
271 | extern int xt_proto_init(struct net *net, u_int8_t af); | 271 | |
272 | extern void xt_proto_fini(struct net *net, u_int8_t af); | 272 | struct xt_table_info *xt_alloc_table_info(unsigned int size); |
273 | 273 | void xt_free_table_info(struct xt_table_info *info); | |
274 | extern struct xt_table_info *xt_alloc_table_info(unsigned int size); | ||
275 | extern void xt_free_table_info(struct xt_table_info *info); | ||
276 | 274 | ||
277 | /** | 275 | /** |
278 | * xt_recseq - recursive seqcount for netfilter use | 276 | * xt_recseq - recursive seqcount for netfilter use |
@@ -353,8 +351,8 @@ static inline unsigned long ifname_compare_aligned(const char *_a, | |||
353 | return ret; | 351 | return ret; |
354 | } | 352 | } |
355 | 353 | ||
356 | extern struct nf_hook_ops *xt_hook_link(const struct xt_table *, nf_hookfn *); | 354 | struct nf_hook_ops *xt_hook_link(const struct xt_table *, nf_hookfn *); |
357 | extern void xt_hook_unlink(const struct xt_table *, struct nf_hook_ops *); | 355 | void xt_hook_unlink(const struct xt_table *, struct nf_hook_ops *); |
358 | 356 | ||
359 | #ifdef CONFIG_COMPAT | 357 | #ifdef CONFIG_COMPAT |
360 | #include <net/compat.h> | 358 | #include <net/compat.h> |
@@ -414,25 +412,25 @@ struct _compat_xt_align { | |||
414 | 412 | ||
415 | #define COMPAT_XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _compat_xt_align)) | 413 | #define COMPAT_XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _compat_xt_align)) |
416 | 414 | ||
417 | extern void xt_compat_lock(u_int8_t af); | 415 | void xt_compat_lock(u_int8_t af); |
418 | extern void xt_compat_unlock(u_int8_t af); | 416 | void xt_compat_unlock(u_int8_t af); |
419 | 417 | ||
420 | extern int xt_compat_add_offset(u_int8_t af, unsigned int offset, int delta); | 418 | int xt_compat_add_offset(u_int8_t af, unsigned int offset, int delta); |
421 | extern void xt_compat_flush_offsets(u_int8_t af); | 419 | void xt_compat_flush_offsets(u_int8_t af); |
422 | extern void xt_compat_init_offsets(u_int8_t af, unsigned int number); | 420 | void xt_compat_init_offsets(u_int8_t af, unsigned int number); |
423 | extern int xt_compat_calc_jump(u_int8_t af, unsigned int offset); | 421 | int xt_compat_calc_jump(u_int8_t af, unsigned int offset); |
424 | 422 | ||
425 | extern int xt_compat_match_offset(const struct xt_match *match); | 423 | int xt_compat_match_offset(const struct xt_match *match); |
426 | extern int xt_compat_match_from_user(struct xt_entry_match *m, | 424 | int xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr, |
427 | void **dstptr, unsigned int *size); | 425 | unsigned int *size); |
428 | extern int xt_compat_match_to_user(const struct xt_entry_match *m, | 426 | int xt_compat_match_to_user(const struct xt_entry_match *m, |
429 | void __user **dstptr, unsigned int *size); | 427 | void __user **dstptr, unsigned int *size); |
430 | 428 | ||
431 | extern int xt_compat_target_offset(const struct xt_target *target); | 429 | int xt_compat_target_offset(const struct xt_target *target); |
432 | extern void xt_compat_target_from_user(struct xt_entry_target *t, | 430 | void xt_compat_target_from_user(struct xt_entry_target *t, void **dstptr, |
433 | void **dstptr, unsigned int *size); | 431 | unsigned int *size); |
434 | extern int xt_compat_target_to_user(const struct xt_entry_target *t, | 432 | int xt_compat_target_to_user(const struct xt_entry_target *t, |
435 | void __user **dstptr, unsigned int *size); | 433 | void __user **dstptr, unsigned int *size); |
436 | 434 | ||
437 | #endif /* CONFIG_COMPAT */ | 435 | #endif /* CONFIG_COMPAT */ |
438 | #endif /* _X_TABLES_H */ | 436 | #endif /* _X_TABLES_H */ |
diff --git a/include/linux/netfilter_bridge.h b/include/linux/netfilter_bridge.h index dfb4d9e52bcb..8ab1c278b66d 100644 --- a/include/linux/netfilter_bridge.h +++ b/include/linux/netfilter_bridge.h | |||
@@ -25,7 +25,7 @@ enum nf_br_hook_priorities { | |||
25 | #define BRNF_PPPoE 0x20 | 25 | #define BRNF_PPPoE 0x20 |
26 | 26 | ||
27 | /* Only used in br_forward.c */ | 27 | /* Only used in br_forward.c */ |
28 | extern int nf_bridge_copy_header(struct sk_buff *skb); | 28 | int nf_bridge_copy_header(struct sk_buff *skb); |
29 | static inline int nf_bridge_maybe_copy_header(struct sk_buff *skb) | 29 | static inline int nf_bridge_maybe_copy_header(struct sk_buff *skb) |
30 | { | 30 | { |
31 | if (skb->nf_bridge && | 31 | if (skb->nf_bridge && |
@@ -53,7 +53,7 @@ static inline unsigned int nf_bridge_mtu_reduction(const struct sk_buff *skb) | |||
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
55 | 55 | ||
56 | extern int br_handle_frame_finish(struct sk_buff *skb); | 56 | int br_handle_frame_finish(struct sk_buff *skb); |
57 | /* Only used in br_device.c */ | 57 | /* Only used in br_device.c */ |
58 | static inline int br_nf_pre_routing_finish_bridge_slow(struct sk_buff *skb) | 58 | static inline int br_nf_pre_routing_finish_bridge_slow(struct sk_buff *skb) |
59 | { | 59 | { |
diff --git a/include/linux/netfilter_ipv4.h b/include/linux/netfilter_ipv4.h index dfaf116b3e81..6e4591bb54d4 100644 --- a/include/linux/netfilter_ipv4.h +++ b/include/linux/netfilter_ipv4.h | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | #include <uapi/linux/netfilter_ipv4.h> | 7 | #include <uapi/linux/netfilter_ipv4.h> |
8 | 8 | ||
9 | extern int ip_route_me_harder(struct sk_buff *skb, unsigned addr_type); | 9 | int ip_route_me_harder(struct sk_buff *skb, unsigned addr_type); |
10 | extern __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, | 10 | __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, |
11 | unsigned int dataoff, u_int8_t protocol); | 11 | unsigned int dataoff, u_int8_t protocol); |
12 | #endif /*__LINUX_IP_NETFILTER_H*/ | 12 | #endif /*__LINUX_IP_NETFILTER_H*/ |
diff --git a/include/linux/netfilter_ipv6.h b/include/linux/netfilter_ipv6.h index 2d4df6ce043e..64dad1cc1a4b 100644 --- a/include/linux/netfilter_ipv6.h +++ b/include/linux/netfilter_ipv6.h | |||
@@ -11,12 +11,12 @@ | |||
11 | 11 | ||
12 | 12 | ||
13 | #ifdef CONFIG_NETFILTER | 13 | #ifdef CONFIG_NETFILTER |
14 | extern int ip6_route_me_harder(struct sk_buff *skb); | 14 | int ip6_route_me_harder(struct sk_buff *skb); |
15 | extern __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, | 15 | __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, |
16 | unsigned int dataoff, u_int8_t protocol); | 16 | unsigned int dataoff, u_int8_t protocol); |
17 | 17 | ||
18 | extern int ipv6_netfilter_init(void); | 18 | int ipv6_netfilter_init(void); |
19 | extern void ipv6_netfilter_fini(void); | 19 | void ipv6_netfilter_fini(void); |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * Hook functions for ipv6 to allow xt_* modules to be built-in even | 22 | * Hook functions for ipv6 to allow xt_* modules to be built-in even |