aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2005-08-09 20:10:12 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 15:42:36 -0700
commit87d11ceb9deb7a3f13fdee6e89d9bb6be7d27a71 (patch)
tree3b5f6f15a76e6d58e5088cad707859390757181a /include
parentc676270bcd25015b978722ec0352c330dcc87883 (diff)
downloadkernel_samsung_tuna-87d11ceb9deb7a3f13fdee6e89d9bb6be7d27a71.zip
kernel_samsung_tuna-87d11ceb9deb7a3f13fdee6e89d9bb6be7d27a71.tar.gz
kernel_samsung_tuna-87d11ceb9deb7a3f13fdee6e89d9bb6be7d27a71.tar.bz2
[SOCK]: Introduce sk_clone
Out of tcp_create_openreq_child, will be used in dccp_create_openreq_child, and is a nice sock function anyway. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/sock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index bdae0a5..828dc08 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -737,6 +737,8 @@ extern struct sock *sk_alloc(int family,
unsigned int __nocast priority,
struct proto *prot, int zero_it);
extern void sk_free(struct sock *sk);
+extern struct sock *sk_clone(const struct sock *sk,
+ const unsigned int __nocast priority);
extern struct sk_buff *sock_wmalloc(struct sock *sk,
unsigned long size, int force,