• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sctp/

Lines Matching defs:chunk

104 			    struct sctp_chunk *chunk);
151 * the size of the outgoing data chunk.
154 * Since it is always 1-1 between chunk and skb, and also a new skb is always
155 * allocated for chunk bundling in sctp_packet_transmit(), we can use the
156 * destructor in the data chunk skb for the purpose of the sndbuf space
159 static inline void sctp_set_owner_w(struct sctp_chunk *chunk)
161 struct sctp_association *asoc = chunk->asoc;
167 skb_set_owner_w(chunk->skb, sk);
169 chunk->skb->destructor = sctp_wfree;
170 /* Save the chunk pointer in skb for sctp_wfree to use later. */
171 *((struct sctp_chunk **)(chunk->skb->cb)) = chunk;
173 asoc->sndbuf_used += SCTP_DATA_SNDSIZE(chunk) +
178 sk->sk_wmem_queued += chunk->skb->truesize;
179 sk_mem_charge(sk, chunk->skb->truesize);
417 * at any one time. If a sender, after sending an ASCONF chunk, decides
425 struct sctp_chunk *chunk)
429 /* If there is an outstanding ASCONF chunk, queue it for later
433 list_add_tail(&chunk->list, &asoc->addip_chunk_list);
437 /* Hold the chunk until an ASCONF_ACK is received. */
438 sctp_chunk_hold(chunk);
439 retval = sctp_primitive_ASCONF(asoc, chunk);
441 sctp_chunk_free(chunk);
443 asoc->addip_last_asconf = chunk;
501 /* Send an ASCONF chunk with Add IP address parameters to all the peers of the
506 * association, we do not send the chunk for that association. But it will not
519 struct sctp_chunk *chunk;
551 * do not send the asconf chunk to its peer, but continue with
577 chunk = sctp_make_asconf_update_ip(asoc, &laddr->a, addrs,
579 if (!chunk) {
584 retval = sctp_send_asconf(asoc, chunk);
679 /* Send an ASCONF chunk with Delete IP address parameters to all the peers of
684 * association, we do not send the chunk for that association. But it will not
698 struct sctp_chunk *chunk;
728 * If so, do not send the asconf chunk to its peer, but
763 chunk = sctp_make_asconf_update_ip(asoc, laddr, addrs, addrcnt,
765 if (!chunk) {
795 retval = sctp_send_asconf(asoc, chunk);
1351 struct sctp_chunk *chunk;
1353 chunk = sctp_make_abort_user(asoc, NULL, 0);
1354 if (chunk)
1355 sctp_primitive_ABORT(asoc, chunk);
1433 struct sctp_chunk *chunk;
1580 chunk = sctp_make_abort_user(asoc, msg, msg_len);
1581 if (!chunk) {
1587 sctp_primitive_ABORT(asoc, chunk);
1775 list_for_each_entry(chunk, &datamsg->chunks, frag_list) {
1776 sctp_chunk_hold(chunk);
1779 sctp_set_owner_w(chunk);
1781 chunk->transport = chunk_tp;
1790 /* Did the lower layer accept the chunk? */
2775 * SCTP DATA chunk. If a message is larger than this size it will be
2781 * SCTP's choice of DATA chunk size. Note also that values set larger
2860 struct sctp_chunk *chunk;
2891 /* Create an ASCONF chunk with SET_PRIMARY parameter */
2892 chunk = sctp_make_asconf_set_prim(asoc,
2894 if (!chunk)
2897 err = sctp_send_asconf(asoc, chunk);
3088 * 7.1.18. Add a chunk that must be authenticated (SCTP_AUTH_CHUNK)
3090 * This set option adds a chunk type that the user is requesting to be
3116 /* add this chunk id to the endpoint */
4836 * SCTP DATA chunk. If a message is larger than this size it will be
4842 * SCTP's choice of DATA chunk size. Note also that values set larger
6004 struct sctp_chunk *chunk;
6007 /* Get the saved chunk pointer. */
6008 chunk = *((struct sctp_chunk **)(skb->cb));
6009 asoc = chunk->asoc;
6011 asoc->sndbuf_used -= SCTP_DATA_SNDSIZE(chunk) +