Lines Matching defs:chunk
418 static inline bool sctp_chunk_pending(const struct sctp_chunk *chunk)
420 return !list_empty(&chunk->list);
425 * the chunk length to indicate when to stop. Make sure
428 #define sctp_walk_params(pos, chunk, member)\
429 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length), member)
431 #define _sctp_walk_params(pos, chunk, end, member)\
432 for (pos.v = chunk->member;\
434 (void *)chunk + end) &&\
435 pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\
451 #define sctp_walk_fwdtsn(pos, chunk)\
452 _sctp_walk_fwdtsn((pos), (chunk), ntohs((chunk)->chunk_hdr->length) - sizeof(struct sctp_fwdtsn_chunk))
454 #define _sctp_walk_fwdtsn(pos, chunk, end)\
455 for (pos = chunk->subh.fwdtsn_hdr->skip;\
456 (void *)pos <= (void *)chunk->subh.fwdtsn_hdr->skip + end - sizeof(struct sctp_fwdtsn_skip);\