@ -91,13 +91,11 @@ struct nft_data_desc {
unsigned int len ;
} ;
extern int nft_data_init ( const struct nft_ctx * ctx , struct nft_data * data ,
struct nft_data_desc * desc , const struct nlattr * nla ) ;
extern void nft_data_uninit ( const struct nft_data * data ,
enum nft_data_types type ) ;
extern int nft_data_dump ( struct sk_buff * skb , int attr ,
const struct nft_data * data ,
enum nft_data_types type , unsigned int len ) ;
int nft_data_init ( const struct nft_ctx * ctx , struct nft_data * data ,
struct nft_data_desc * desc , const struct nlattr * nla ) ;
void nft_data_uninit ( const struct nft_data * data , enum nft_data_types type ) ;
int nft_data_dump ( struct sk_buff * skb , int attr , const struct nft_data * data ,
enum nft_data_types type , unsigned int len ) ;
static inline enum nft_data_types nft_dreg_to_type ( enum nft_registers reg )
{
@ -109,12 +107,11 @@ static inline enum nft_registers nft_type_to_reg(enum nft_data_types type)
return type = = NFT_DATA_VERDICT ? NFT_REG_VERDICT : NFT_REG_1 ;
}
extern int nft_validate_input_register ( enum nft_registers reg ) ;
extern int nft_validate_output_register ( enum nft_registers reg ) ;
extern int nft_validate_data_load ( const struct nft_ctx * ctx ,
enum nft_registers reg ,
const struct nft_data * data ,
enum nft_data_types type ) ;
int nft_validate_input_register ( enum nft_registers reg ) ;
int nft_validate_output_register ( enum nft_registers reg ) ;
int nft_validate_data_load ( const struct nft_ctx * ctx , enum nft_registers reg ,
const struct nft_data * data ,
enum nft_data_types type ) ;
/**
* struct nft_set_elem - generic representation of set elements
@ -183,8 +180,8 @@ struct nft_set_ops {
u32 features ;
} ;
extern int nft_register_set ( struct nft_set_ops * ops ) ;
extern void nft_unregister_set ( struct nft_set_ops * ops ) ;
int nft_register_set ( struct nft_set_ops * ops ) ;
void nft_unregister_set ( struct nft_set_ops * ops ) ;
/**
* struct nft_set - nf_tables set instance
@ -220,8 +217,8 @@ static inline void *nft_set_priv(const struct nft_set *set)
return ( void * ) set - > data ;
}
extern struct nft_set * nf_tables_set_lookup ( const struct nft_table * table ,
const struct nlattr * nla ) ;
struct nft_set * nf_tables_set_lookup ( const struct nft_table * table ,
const struct nlattr * nla ) ;
/**
* struct nft_set_binding - nf_tables set binding
@ -237,10 +234,10 @@ struct nft_set_binding {
const struct nft_chain * chain ;
} ;
extern int nf_tables_bind_set ( const struct nft_ctx * ctx , struct nft_set * set ,
struct nft_set_binding * binding ) ;
extern void nf_tables_unbind_set ( const struct nft_ctx * ctx , struct nft_set * set ,
struct nft_set_binding * binding ) ;
int nf_tables_bind_set ( const struct nft_ctx * ctx , struct nft_set * set ,
struct nft_set_binding * binding ) ;
void nf_tables_unbind_set ( const struct nft_ctx * ctx , struct nft_set * set ,
struct nft_set_binding * binding ) ;
/**
@ -446,8 +443,8 @@ static inline struct nft_base_chain *nft_base_chain(const struct nft_chain *chai
return container_of ( chain , struct nft_base_chain , chain ) ;
}
extern unsigned int nft_do_chain_pktinfo ( struct nft_pktinfo * pkt ,
const struct nf_hook_ops * ops ) ;
unsigned int nft_do_chain_pktinfo ( struct nft_pktinfo * pkt ,
const struct nf_hook_ops * ops ) ;
/**
* struct nft_table - nf_tables table
@ -489,8 +486,8 @@ struct nft_af_info {
nf_hookfn * hooks [ NF_MAX_HOOKS ] ;
} ;
extern int nft_register_afinfo ( struct net * , struct nft_af_info * ) ;
extern void nft_unregister_afinfo ( struct nft_af_info * ) ;
int nft_register_afinfo ( struct net * , struct nft_af_info * ) ;
void nft_unregister_afinfo ( struct nft_af_info * ) ;
struct nf_chain_type {
unsigned int hook_mask ;
@ -501,11 +498,11 @@ struct nf_chain_type {
int family ;
} ;
extern int nft_register_chain_type ( struct nf_chain_type * ) ;
extern void nft_unregister_chain_type ( struct nf_chain_type * ) ;
int nft_register_chain_type ( struct nf_chain_type * ) ;
void nft_unregister_chain_type ( struct nf_chain_type * ) ;
extern int nft_register_expr ( struct nft_expr_type * ) ;
extern void nft_unregister_expr ( struct nft_expr_type * ) ;
int nft_register_expr ( struct nft_expr_type * ) ;
void nft_unregister_expr ( struct nft_expr_type * ) ;
# define MODULE_ALIAS_NFT_FAMILY(family) \
MODULE_ALIAS ( " nft-afinfo- " __stringify ( family ) )