diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-10-18 00:21:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-10-18 00:21:26 -0400 |
commit | 55b333253d5bcafbe187b50474e40789301c53c6 (patch) | |
tree | dbea170b01196473c95d3d558bfce00bc17187fe /include | |
parent | d114f399b4da6fa7f9da3bbf1fb841370c11e788 (diff) |
[NET]: Introduce the sk_detach_filter() call
Filter is attached in a separate function, so do the
same for filter detaching.
This also removes one variable sock_setsockopt().
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 91b2e3b9251e..ddfa0372a3b7 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
@@ -146,6 +146,7 @@ struct sock; | |||
146 | 146 | ||
147 | extern unsigned int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen); | 147 | extern unsigned int sk_run_filter(struct sk_buff *skb, struct sock_filter *filter, int flen); |
148 | extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); | 148 | extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); |
149 | extern int sk_detach_filter(struct sock *sk); | ||
149 | extern int sk_chk_filter(struct sock_filter *filter, int flen); | 150 | extern int sk_chk_filter(struct sock_filter *filter, int flen); |
150 | #endif /* __KERNEL__ */ | 151 | #endif /* __KERNEL__ */ |
151 | 152 | ||