diff options
author | Benjamin Poirier <bpoirier@suse.de> | 2012-03-08 05:55:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-08 13:52:08 -0800 |
commit | 0343c5543b1d3ffa08e6716d82afb62648b80eba (patch) | |
tree | 125feb540692bed744e916ff3f12bd14bffdb865 /include/net/sctp | |
parent | b8622cbd58f345d48f683d881abe3037c60aa673 (diff) | |
download | op-kernel-dev-0343c5543b1d3ffa08e6716d82afb62648b80eba.zip op-kernel-dev-0343c5543b1d3ffa08e6716d82afb62648b80eba.tar.gz |
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/sctp')
-rw-r--r-- | include/net/sctp/sctp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index d368561..6ee44b2 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) \ |