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>
This commit is contained in:
parent
b8622cbd58
commit
0343c5543b
2 changed files with 10 additions and 15 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue