diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 23:10:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:42:36 -0400 |
commit | 87d11ceb9deb7a3f13fdee6e89d9bb6be7d27a71 (patch) | |
tree | 3b5f6f15a76e6d58e5088cad707859390757181a /include/net | |
parent | c676270bcd25015b978722ec0352c330dcc87883 (diff) |
[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/net')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index bdae0a5eadf5..828dc082fcb7 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -737,6 +737,8 @@ extern struct sock *sk_alloc(int family, | |||
737 | unsigned int __nocast priority, | 737 | unsigned int __nocast priority, |
738 | struct proto *prot, int zero_it); | 738 | struct proto *prot, int zero_it); |
739 | extern void sk_free(struct sock *sk); | 739 | extern void sk_free(struct sock *sk); |
740 | extern struct sock *sk_clone(const struct sock *sk, | ||
741 | const unsigned int __nocast priority); | ||
740 | 742 | ||
741 | extern struct sk_buff *sock_wmalloc(struct sock *sk, | 743 | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
742 | unsigned long size, int force, | 744 | unsigned long size, int force, |