diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-02-13 20:01:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 19:35:16 -0500 |
commit | 5ff3f073670b544a9c0547cc6fef1f7eed5762ed (patch) | |
tree | 44259652c1c6305c7b5ce3c8c1774407951e8e25 | |
parent | 305b0160932af0ed67259b4b13c471aed2a86588 (diff) |
net: export attach/detach filter routines
Export sk_attach_filter/sk_detach_filter routines,
so that tun module can use them.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 08db7b9143a3..7517110ff4ae 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -529,6 +529,7 @@ int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk) | |||
529 | sk_filter_delayed_uncharge(sk, old_fp); | 529 | sk_filter_delayed_uncharge(sk, old_fp); |
530 | return 0; | 530 | return 0; |
531 | } | 531 | } |
532 | EXPORT_SYMBOL_GPL(sk_attach_filter); | ||
532 | 533 | ||
533 | int sk_detach_filter(struct sock *sk) | 534 | int sk_detach_filter(struct sock *sk) |
534 | { | 535 | { |
@@ -545,3 +546,4 @@ int sk_detach_filter(struct sock *sk) | |||
545 | rcu_read_unlock_bh(); | 546 | rcu_read_unlock_bh(); |
546 | return ret; | 547 | return ret; |
547 | } | 548 | } |
549 | EXPORT_SYMBOL_GPL(sk_detach_filter); | ||