X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fnetfilter.h;h=a9357be1ae41e22af645cff08e05ff6d3b6c5c2a;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=bbb389af97880f419539951898ba3195f131b3cf;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index bbb389af9..a9357be1a 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -10,6 +10,7 @@ #include #include #endif +#include /* Responses from hook functions. */ #define NF_DROP 0 @@ -64,11 +65,11 @@ struct nf_sockopt_ops /* Non-inclusive ranges: use 0/0/NULL to never get called. */ int set_optmin; int set_optmax; - int (*set)(struct sock *sk, int optval, void *user, unsigned int len); + int (*set)(struct sock *sk, int optval, void __user *user, unsigned int len); int get_optmin; int get_optmax; - int (*get)(struct sock *sk, int optval, void *user, int *len); + int (*get)(struct sock *sk, int optval, void __user *user, int *len); /* Number of users inside set() or get(). */ unsigned int use; @@ -156,9 +157,9 @@ int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb, int (*okfn)(struct sk_buff *), int thresh); /* Call setsockopt() */ -int nf_setsockopt(struct sock *sk, int pf, int optval, char *opt, +int nf_setsockopt(struct sock *sk, int pf, int optval, char __user *opt, int len); -int nf_getsockopt(struct sock *sk, int pf, int optval, char *opt, +int nf_getsockopt(struct sock *sk, int pf, int optval, char __user *opt, int *len); /* Packet queuing */ @@ -171,7 +172,13 @@ extern void nf_reinject(struct sk_buff *skb, struct nf_info *info, unsigned int verdict); -extern void (*ip_ct_attach)(struct sk_buff *, struct nf_ct_info *); +extern inline struct ipt_target * +ipt_find_target_lock(const char *name, int *error, struct semaphore *mutex); +extern inline struct ip6t_target * +ip6t_find_target_lock(const char *name, int *error, struct semaphore *mutex); +extern inline struct arpt_target * +arpt_find_target_lock(const char *name, int *error, struct semaphore *mutex); +extern void (*ip_ct_attach)(struct sk_buff *, struct sk_buff *); #ifdef CONFIG_NETFILTER_DEBUG extern void nf_dump_skb(int pf, struct sk_buff *skb);