summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2003-03-29 09:45:55 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-03-29 09:45:55 -0800
commite99122d248d5f22aa2466a53c29997386ac2865f (patch)
tree6c4feb70721db6ff3bb519669c6cfe0553d5b7e8 /include/net
parenta0b780186232e31f3f1a3a638bfe6578b643f0b7 (diff)
[NET]: Nuke CONFIG_FILTER.
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sock.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index df20f44552bf..6235779cc456 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -48,9 +48,7 @@
#include <linux/skbuff.h> /* struct sk_buff */
#include <linux/security.h>
-#ifdef CONFIG_FILTER
#include <linux/filter.h>
-#endif
#include <asm/atomic.h>
#include <net/dst.h>
@@ -174,10 +172,8 @@ struct sock {
long rcvtimeo;
long sndtimeo;
-#ifdef CONFIG_FILTER
/* Socket Filtering Instructions */
struct sk_filter *filter;
-#endif /* CONFIG_FILTER */
/* This is where all the private (optional) areas that don't
* overlap will eventually live.
@@ -456,8 +452,6 @@ extern void sock_def_destruct(struct sock *);
/* Initialise core socket variables */
extern void sock_init_data(struct socket *sock, struct sock *sk);
-#ifdef CONFIG_FILTER
-
/**
* __sk_filter - run a packet through a socket filter
* @sk: sock associated with &sk_buff
@@ -524,15 +518,6 @@ static inline void sk_filter_charge(struct sock *sk, struct sk_filter *fp)
atomic_add(sk_filter_len(fp), &sk->omem_alloc);
}
-#else
-
-static inline int __sk_filter(struct sock *sk, struct sk_buff *skb, int needlock)
-{
- return 0;
-}
-
-#endif /* CONFIG_FILTER */
-
static inline int sk_filter(struct sock *sk, struct sk_buff *skb, int needlock)
{
int err;