@@ -229,50 +229,48 @@ struct xt_table_info {
229229
230230#define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \
231231 + nr_cpu_ids * sizeof(char *))
232- extern int xt_register_target (struct xt_target * target );
233- extern void xt_unregister_target (struct xt_target * target );
234- extern int xt_register_targets (struct xt_target * target , unsigned int n );
235- extern void xt_unregister_targets (struct xt_target * target , unsigned int n );
236-
237- extern int xt_register_match (struct xt_match * target );
238- extern void xt_unregister_match (struct xt_match * target );
239- extern int xt_register_matches (struct xt_match * match , unsigned int n );
240- extern void xt_unregister_matches (struct xt_match * match , unsigned int n );
241-
242- extern int xt_check_match (struct xt_mtchk_param * ,
243- unsigned int size , u_int8_t proto , bool inv_proto );
244- extern int xt_check_target (struct xt_tgchk_param * ,
245- unsigned int size , u_int8_t proto , bool inv_proto );
246-
247- extern struct xt_table * xt_register_table (struct net * net ,
248- const struct xt_table * table ,
249- struct xt_table_info * bootstrap ,
250- struct xt_table_info * newinfo );
251- extern void * xt_unregister_table (struct xt_table * table );
252-
253- extern struct xt_table_info * xt_replace_table (struct xt_table * table ,
254- unsigned int num_counters ,
255- struct xt_table_info * newinfo ,
256- int * error );
257-
258- extern 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 );
260- extern struct xt_match * xt_request_find_match (u8 af , const char * name ,
261- u8 revision );
262- extern struct xt_target * xt_request_find_target (u8 af , const char * name ,
263- u8 revision );
264- extern int xt_find_revision (u8 af , const char * name , u8 revision ,
265- int target , int * err );
266-
267- extern struct xt_table * xt_find_table_lock (struct net * net , u_int8_t af ,
268- const char * name );
269- extern void xt_table_unlock (struct xt_table * t );
270-
271- extern int xt_proto_init (struct net * net , u_int8_t af );
272- extern void xt_proto_fini (struct net * net , u_int8_t af );
273-
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 );
232+ int xt_register_target (struct xt_target * target );
233+ void xt_unregister_target (struct xt_target * target );
234+ int xt_register_targets (struct xt_target * target , unsigned int n );
235+ void xt_unregister_targets (struct xt_target * target , unsigned int n );
236+
237+ int xt_register_match (struct xt_match * target );
238+ void xt_unregister_match (struct xt_match * target );
239+ int xt_register_matches (struct xt_match * match , unsigned int n );
240+ void xt_unregister_matches (struct xt_match * match , unsigned int n );
241+
242+ int xt_check_match (struct xt_mtchk_param * , unsigned int size , u_int8_t proto ,
243+ bool inv_proto );
244+ int xt_check_target (struct xt_tgchk_param * , unsigned int size , u_int8_t proto ,
245+ bool inv_proto );
246+
247+ struct xt_table * xt_register_table (struct net * net ,
248+ const struct xt_table * table ,
249+ struct xt_table_info * bootstrap ,
250+ struct xt_table_info * newinfo );
251+ void * xt_unregister_table (struct xt_table * table );
252+
253+ struct xt_table_info * xt_replace_table (struct xt_table * table ,
254+ unsigned int num_counters ,
255+ struct xt_table_info * newinfo ,
256+ int * error );
257+
258+ struct xt_match * xt_find_match (u8 af , const char * name , u8 revision );
259+ struct xt_target * xt_find_target (u8 af , const char * name , u8 revision );
260+ struct xt_match * xt_request_find_match (u8 af , const char * name , u8 revision );
261+ struct xt_target * xt_request_find_target (u8 af , const char * name , u8 revision );
262+ int xt_find_revision (u8 af , const char * name , u8 revision , int target ,
263+ int * err );
264+
265+ struct xt_table * xt_find_table_lock (struct net * net , u_int8_t af ,
266+ const char * name );
267+ void xt_table_unlock (struct xt_table * t );
268+
269+ int xt_proto_init (struct net * net , u_int8_t af );
270+ void xt_proto_fini (struct net * net , u_int8_t af );
271+
272+ struct xt_table_info * xt_alloc_table_info (unsigned int size );
273+ void xt_free_table_info (struct xt_table_info * info );
276274
277275/**
278276 * xt_recseq - recursive seqcount for netfilter use
@@ -353,8 +351,8 @@ static inline unsigned long ifname_compare_aligned(const char *_a,
353351 return ret ;
354352}
355353
356- extern 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 * );
354+ struct nf_hook_ops * xt_hook_link (const struct xt_table * , nf_hookfn * );
355+ void xt_hook_unlink (const struct xt_table * , struct nf_hook_ops * );
358356
359357#ifdef CONFIG_COMPAT
360358#include <net/compat.h>
@@ -414,25 +412,25 @@ struct _compat_xt_align {
414412
415413#define COMPAT_XT_ALIGN (s ) __ALIGN_KERNEL((s), __alignof__(struct _compat_xt_align))
416414
417- extern void xt_compat_lock (u_int8_t af );
418- extern void xt_compat_unlock (u_int8_t af );
419-
420- extern 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 );
422- extern 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 );
424-
425- extern int xt_compat_match_offset (const struct xt_match * match );
426- extern int xt_compat_match_from_user (struct xt_entry_match * m ,
427- void * * dstptr , unsigned int * size );
428- extern int xt_compat_match_to_user (const struct xt_entry_match * m ,
429- void __user * * dstptr , unsigned int * size );
430-
431- extern int xt_compat_target_offset (const struct xt_target * target );
432- extern void xt_compat_target_from_user (struct xt_entry_target * t ,
433- void * * dstptr , unsigned int * size );
434- extern int xt_compat_target_to_user (const struct xt_entry_target * t ,
435- void __user * * dstptr , unsigned int * size );
415+ void xt_compat_lock (u_int8_t af );
416+ void xt_compat_unlock (u_int8_t af );
417+
418+ int xt_compat_add_offset (u_int8_t af , unsigned int offset , int delta );
419+ void xt_compat_flush_offsets (u_int8_t af );
420+ void xt_compat_init_offsets (u_int8_t af , unsigned int number );
421+ int xt_compat_calc_jump (u_int8_t af , unsigned int offset );
422+
423+ int xt_compat_match_offset (const struct xt_match * match );
424+ int xt_compat_match_from_user (struct xt_entry_match * m , void * * dstptr ,
425+ unsigned int * size );
426+ int xt_compat_match_to_user (const struct xt_entry_match * m ,
427+ void __user * * dstptr , unsigned int * size );
428+
429+ int xt_compat_target_offset (const struct xt_target * target );
430+ void xt_compat_target_from_user (struct xt_entry_target * t , void * * dstptr ,
431+ unsigned int * size );
432+ int xt_compat_target_to_user (const struct xt_entry_target * t ,
433+ void __user * * dstptr , unsigned int * size );
436434
437435#endif /* CONFIG_COMPAT */
438436#endif /* _X_TABLES_H */
0 commit comments