Lines Matching refs:chunk
79 struct sctp_chunk *chunk = event->chunk; in sctp_ulpevent_set_owner() local
90 if (chunk && chunk->head_skb && !chunk->head_skb->sk) in sctp_ulpevent_set_owner()
91 chunk->head_skb->sk = asoc->base.sk; in sctp_ulpevent_set_owner()
117 __u16 inbound, struct sctp_chunk *chunk, gfp_t gfp) in sctp_ulpevent_make_assoc_change() argument
126 if (chunk) { in sctp_ulpevent_make_assoc_change()
130 skb = skb_copy_expand(chunk->skb, in sctp_ulpevent_make_assoc_change()
145 ntohs(chunk->chunk_hdr->length) - in sctp_ulpevent_make_assoc_change()
375 struct sctp_chunk *chunk, __u16 flags, in sctp_ulpevent_make_remote_error() argument
385 ch = (struct sctp_errhdr *)(chunk->skb->data); in sctp_ulpevent_make_remote_error()
390 skb_pull(chunk->skb, sizeof(*ch)); in sctp_ulpevent_make_remote_error()
395 skb = skb_copy_expand(chunk->skb, sizeof(*sre), 0, gfp); in sctp_ulpevent_make_remote_error()
398 skb_pull(chunk->skb, elen); in sctp_ulpevent_make_remote_error()
431 const struct sctp_association *asoc, struct sctp_chunk *chunk, in sctp_ulpevent_make_send_failed() argument
439 int len = ntohs(chunk->chunk_hdr->length); in sctp_ulpevent_make_send_failed()
442 skb = skb_copy_expand(chunk->skb, in sctp_ulpevent_make_send_failed()
509 memcpy(&ssf->ssf_info, &chunk->sinfo, sizeof(struct sctp_sndrcvinfo)); in sctp_ulpevent_make_send_failed()
514 ssf->ssf_info.sinfo_flags = chunk->chunk_hdr->flags; in sctp_ulpevent_make_send_failed()
534 const struct sctp_association *asoc, struct sctp_chunk *chunk, in sctp_ulpevent_make_send_failed_event() argument
542 skb = skb_copy_expand(chunk->skb, sizeof(*ssf), 0, gfp); in sctp_ulpevent_make_send_failed_event()
546 len = ntohs(chunk->chunk_hdr->length); in sctp_ulpevent_make_send_failed_event()
560 ssf->ssfe_info.snd_sid = chunk->sinfo.sinfo_stream; in sctp_ulpevent_make_send_failed_event()
561 ssf->ssfe_info.snd_ppid = chunk->sinfo.sinfo_ppid; in sctp_ulpevent_make_send_failed_event()
562 ssf->ssfe_info.snd_context = chunk->sinfo.sinfo_context; in sctp_ulpevent_make_send_failed_event()
563 ssf->ssfe_info.snd_assoc_id = chunk->sinfo.sinfo_assoc_id; in sctp_ulpevent_make_send_failed_event()
564 ssf->ssfe_info.snd_flags = chunk->chunk_hdr->flags; in sctp_ulpevent_make_send_failed_event()
676 struct sctp_chunk *chunk, in sctp_ulpevent_make_rcvmsg() argument
680 struct sk_buff *skb = chunk->skb; in sctp_ulpevent_make_rcvmsg()
695 datalen = ntohs(chunk->chunk_hdr->length); in sctp_ulpevent_make_rcvmsg()
701 skb = skb_clone(chunk->skb, gfp); in sctp_ulpevent_make_rcvmsg()
709 ntohl(chunk->subh.data_hdr->tsn), in sctp_ulpevent_make_rcvmsg()
710 chunk->transport)) in sctp_ulpevent_make_rcvmsg()
728 skb_trim(skb, chunk->chunk_end - padding - skb->data); in sctp_ulpevent_make_rcvmsg()
742 sctp_chunk_hold(chunk); in sctp_ulpevent_make_rcvmsg()
743 event->chunk = chunk; in sctp_ulpevent_make_rcvmsg()
747 event->stream = ntohs(chunk->subh.data_hdr->stream); in sctp_ulpevent_make_rcvmsg()
748 if (chunk->chunk_hdr->flags & SCTP_DATA_UNORDERED) { in sctp_ulpevent_make_rcvmsg()
752 event->tsn = ntohl(chunk->subh.data_hdr->tsn); in sctp_ulpevent_make_rcvmsg()
753 event->msg_flags |= chunk->chunk_hdr->flags; in sctp_ulpevent_make_rcvmsg()
1133 sctp_chunk_put(event->chunk); in sctp_ulpevent_release_data()
1156 sctp_chunk_put(event->chunk); in sctp_ulpevent_release_frag_data()