summaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorHerbert Xu2010-05-24 09:14:10 +0200
committerDavid S. Miller2010-05-24 09:14:10 +0200
commit8286274284e15b11b0f531b6ceeef21fbe00a8dd (patch)
tree1e63dabdbc60f3409710cf58ed351e2a1f262941 /net/core/sock.c
parentcls_cgroup: Store classid in struct sock (diff)
downloadkernel-qcow2-linux-8286274284e15b11b0f531b6ceeef21fbe00a8dd.tar.gz
kernel-qcow2-linux-8286274284e15b11b0f531b6ceeef21fbe00a8dd.tar.xz
kernel-qcow2-linux-8286274284e15b11b0f531b6ceeef21fbe00a8dd.zip
tun: Update classid on packet injection
This patch makes tun update its socket classid every time we inject a packet into the network stack. This is so that any updates made by the admin to the process writing packets to tun is effected. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index a05ae7f9771e..37fe9b6adade 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1064,6 +1064,7 @@ void sock_update_classid(struct sock *sk)
if (classid && classid != sk->sk_classid)
sk->sk_classid = classid;
}
+EXPORT_SYMBOL(sock_update_classid);
#endif
/**