Skip to content

Commit 5ff3f07

Browse files
mstsirkindavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 305b016 commit 5ff3f07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/core/filter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk)
529529
sk_filter_delayed_uncharge(sk, old_fp);
530530
return 0;
531531
}
532+
EXPORT_SYMBOL_GPL(sk_attach_filter);
532533

533534
int sk_detach_filter(struct sock *sk)
534535
{
@@ -545,3 +546,4 @@ int sk_detach_filter(struct sock *sk)
545546
rcu_read_unlock_bh();
546547
return ret;
547548
}
549+
EXPORT_SYMBOL_GPL(sk_detach_filter);

0 commit comments

Comments
 (0)