@@ -139,15 +139,13 @@ static inline struct net *nf_ct_net(const struct nf_conn *ct)
139139}
140140
141141/* Alter reply tuple (maybe alter helper). */
142- extern void
143- nf_conntrack_alter_reply (struct nf_conn * ct ,
144- const struct nf_conntrack_tuple * newreply );
142+ void nf_conntrack_alter_reply (struct nf_conn * ct ,
143+ const struct nf_conntrack_tuple * newreply );
145144
146145/* Is this tuple taken? (ignoring any belonging to the given
147146 conntrack). */
148- extern int
149- nf_conntrack_tuple_taken (const struct nf_conntrack_tuple * tuple ,
150- const struct nf_conn * ignored_conntrack );
147+ int nf_conntrack_tuple_taken (const struct nf_conntrack_tuple * tuple ,
148+ const struct nf_conn * ignored_conntrack );
151149
152150/* Return conntrack_info and tuple hash for given skb. */
153151static inline struct nf_conn *
@@ -165,37 +163,34 @@ static inline void nf_ct_put(struct nf_conn *ct)
165163}
166164
167165/* Protocol module loading */
168- extern int nf_ct_l3proto_try_module_get (unsigned short l3proto );
169- extern void nf_ct_l3proto_module_put (unsigned short l3proto );
166+ int nf_ct_l3proto_try_module_get (unsigned short l3proto );
167+ void nf_ct_l3proto_module_put (unsigned short l3proto );
170168
171169/*
172170 * Allocate a hashtable of hlist_head (if nulls == 0),
173171 * or hlist_nulls_head (if nulls == 1)
174172 */
175- extern void * nf_ct_alloc_hashtable (unsigned int * sizep , int nulls );
173+ void * nf_ct_alloc_hashtable (unsigned int * sizep , int nulls );
176174
177- extern void nf_ct_free_hashtable (void * hash , unsigned int size );
175+ void nf_ct_free_hashtable (void * hash , unsigned int size );
178176
179- extern struct nf_conntrack_tuple_hash *
177+ struct nf_conntrack_tuple_hash *
180178__nf_conntrack_find (struct net * net , u16 zone ,
181179 const struct nf_conntrack_tuple * tuple );
182180
183- extern int nf_conntrack_hash_check_insert (struct nf_conn * ct );
181+ int nf_conntrack_hash_check_insert (struct nf_conn * ct );
184182bool nf_ct_delete (struct nf_conn * ct , u32 pid , int report );
185183
186- extern void nf_conntrack_flush_report (struct net * net , u32 portid , int report );
184+ void nf_conntrack_flush_report (struct net * net , u32 portid , int report );
187185
188- extern bool nf_ct_get_tuplepr (const struct sk_buff * skb ,
189- unsigned int nhoff , u_int16_t l3num ,
190- struct nf_conntrack_tuple * tuple );
191- extern bool nf_ct_invert_tuplepr (struct nf_conntrack_tuple * inverse ,
192- const struct nf_conntrack_tuple * orig );
186+ bool nf_ct_get_tuplepr (const struct sk_buff * skb , unsigned int nhoff ,
187+ u_int16_t l3num , struct nf_conntrack_tuple * tuple );
188+ bool nf_ct_invert_tuplepr (struct nf_conntrack_tuple * inverse ,
189+ const struct nf_conntrack_tuple * orig );
193190
194- extern void __nf_ct_refresh_acct (struct nf_conn * ct ,
195- enum ip_conntrack_info ctinfo ,
196- const struct sk_buff * skb ,
197- unsigned long extra_jiffies ,
198- int do_acct );
191+ void __nf_ct_refresh_acct (struct nf_conn * ct , enum ip_conntrack_info ctinfo ,
192+ const struct sk_buff * skb ,
193+ unsigned long extra_jiffies , int do_acct );
199194
200195/* Refresh conntrack for this many jiffies and do accounting */
201196static inline void nf_ct_refresh_acct (struct nf_conn * ct ,
@@ -214,10 +209,8 @@ static inline void nf_ct_refresh(struct nf_conn *ct,
214209 __nf_ct_refresh_acct (ct , 0 , skb , extra_jiffies , 0 );
215210}
216211
217- extern bool __nf_ct_kill_acct (struct nf_conn * ct ,
218- enum ip_conntrack_info ctinfo ,
219- const struct sk_buff * skb ,
220- int do_acct );
212+ bool __nf_ct_kill_acct (struct nf_conn * ct , enum ip_conntrack_info ctinfo ,
213+ const struct sk_buff * skb , int do_acct );
221214
222215/* kill conntrack and do accounting */
223216static inline bool nf_ct_kill_acct (struct nf_conn * ct ,
@@ -244,19 +237,17 @@ static inline struct nf_conn *nf_ct_untracked_get(void)
244237{
245238 return & __raw_get_cpu_var (nf_conntrack_untracked );
246239}
247- extern void nf_ct_untracked_status_or (unsigned long bits );
240+ void nf_ct_untracked_status_or (unsigned long bits );
248241
249242/* Iterate over all conntracks: if iter returns true, it's deleted. */
250- extern void
251- nf_ct_iterate_cleanup (struct net * net ,
252- int (* iter )(struct nf_conn * i , void * data ),
253- void * data , u32 portid , int report );
254- extern void nf_conntrack_free (struct nf_conn * ct );
255- extern struct nf_conn *
256- nf_conntrack_alloc (struct net * net , u16 zone ,
257- const struct nf_conntrack_tuple * orig ,
258- const struct nf_conntrack_tuple * repl ,
259- gfp_t gfp );
243+ void nf_ct_iterate_cleanup (struct net * net ,
244+ int (* iter )(struct nf_conn * i , void * data ),
245+ void * data , u32 portid , int report );
246+ void nf_conntrack_free (struct nf_conn * ct );
247+ struct nf_conn * nf_conntrack_alloc (struct net * net , u16 zone ,
248+ const struct nf_conntrack_tuple * orig ,
249+ const struct nf_conntrack_tuple * repl ,
250+ gfp_t gfp );
260251
261252static inline int nf_ct_is_template (const struct nf_conn * ct )
262253{
@@ -287,7 +278,7 @@ static inline bool nf_is_loopback_packet(const struct sk_buff *skb)
287278
288279struct kernel_param ;
289280
290- extern int nf_conntrack_set_hashsize (const char * val , struct kernel_param * kp );
281+ int nf_conntrack_set_hashsize (const char * val , struct kernel_param * kp );
291282extern unsigned int nf_conntrack_htable_size ;
292283extern unsigned int nf_conntrack_max ;
293284extern unsigned int nf_conntrack_hash_rnd ;
0 commit comments