summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2012-03-08 05:55:58 +0000
committerDavid S. Miller <davem@davemloft.net>2012-03-08 13:52:08 -0800
commit0343c5543b1d3ffa08e6716d82afb62648b80eba (patch)
tree125feb540692bed744e916ff3f12bd14bffdb865 /include/net
parentb8622cbd58f345d48f683d881abe3037c60aa673 (diff)
sctp: Export sctp_do_peeloff
lookup sctp_association within sctp_do_peeloff() to enable its use outside of the sctp code with minimal knowledge of the former. Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sctp/sctp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index d3685615a8b..6ee44b24864 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -413,6 +413,7 @@ static inline sctp_assoc_t sctp_assoc2id(const struct sctp_association *asoc)
/* Look up the association by its id. */
struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
+int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp);
/* A macro to walk a list of skbs. */
#define sctp_skb_for_each(pos, head, tmp) \