Lines Matching refs:chlen
2766 unsigned int chlen;
2771 chlen = ntohs(cp->ch.chunk_length);
2772 chlen -= sizeof(struct sctp_pktdrop_chunk);
2773 /* XXX possible chlen underflow */
2774 if (chlen == 0) {
2780 chlen -= sizeof(struct sctphdr);
2781 /* XXX possible chlen underflow */
2822 while ((ch != NULL) && (chlen >= sizeof(struct sctp_chunkhdr))) {
2833 if (at > chlen) {
2841 if (chlen < (sizeof(struct sctp_data_chunk) +
2846 if (chlen < sizeof(struct sctp_chunkhdr)) {
2856 if (chlen >= (sizeof(struct sctp_data_chunk) + sizeof(u_int32_t)) ) {
2881 if (SCTP_SIZE32(at) > chlen) {
2884 chlen -= SCTP_SIZE32(at);
2885 if (chlen < sizeof(struct sctp_chunkhdr)) {