Lines Matching defs:p_len
5377 int p_len;
5792 p_len = sizeof(*pr_supported) + num_ext;
5793 pr_supported->ph.param_length = htons(p_len);
5794 bzero((caddr_t)pr_supported + p_len, SCTP_SIZE32(p_len) - p_len);
5795 SCTP_BUF_LEN(m) += SCTP_SIZE32(p_len);
5808 p_len = sizeof(*randp) + random_len;
5809 randp->ph.param_length = htons(p_len);
5812 bzero((caddr_t)randp + p_len, SCTP_SIZE32(p_len) - p_len);
5813 SCTP_BUF_LEN(m) += SCTP_SIZE32(p_len);
5817 p_len = sctp_serialize_hmaclist(inp->sctp_ep.local_hmacs,
5819 if (p_len > 0) {
5820 p_len += sizeof(*hmacs);
5822 hmacs->ph.param_length = htons(p_len);
5824 bzero((caddr_t)hmacs + p_len, SCTP_SIZE32(p_len) - p_len);
5825 SCTP_BUF_LEN(m) += SCTP_SIZE32(p_len);
5829 p_len = sctp_serialize_auth_chunks(inp->sctp_ep.local_auth_chunks,
5831 if (p_len > 0) {
5832 p_len += sizeof(*chunks);
5834 chunks->ph.param_length = htons(p_len);
5836 bzero((caddr_t)chunks + p_len, SCTP_SIZE32(p_len) - p_len);
5837 SCTP_BUF_LEN(m) += SCTP_SIZE32(p_len);
5890 p_len = 0;
5892 p_len += SCTP_BUF_LEN(m_tmp);
5910 p_len += SCTP_BUF_LEN(m_tmp);
5921 initack->ch.chunk_length = htons(p_len);
5935 padval = p_len % 4;