Lines Matching refs:ntohs

210 #define SN_SCTP_NEXTCHUNK(chunkhead)	(struct sctp_chunkhdr *)(((char *)chunkhead) + SCTP_SIZE32(ntohs(chunkhead->chunk_length)))
213 #define SN_SCTP_NEXTPARAM(param) (struct sctp_paramhdr *)(((char *)param) + SCTP_SIZE32(ntohs(param->param_length)))
729 if (ntohs(pip->ip_off) & IP_MF) {
908 if (ntohs(sm->ip_hdr->ip_len) < ip_size) { /* short packet, cannot send error cause */
986 (include_error_cause ? ntohs(error_cause->code) : 0),
988 ntohs(sctp_hdr->dest_port),
1044 bytes_left = ntohs(pip->ip_len) - (pip->ip_hl << 2);
1066 chunk_length = SCTP_SIZE32(ntohs(chunk_hdr->chunk_length));
1145 if (ntohs(param_hdr->param_type) == SCTP_IPV4_ADDRESS) {
1211 chunk_length = SCTP_SIZE32(ntohs(chunk_hdr->chunk_length));
1260 param_size = SCTP_SIZE32(ntohs(param->param_length));
1264 if (ntohs(param->param_type) == SCTP_VTAG_PARAM) {
1286 param_size = SCTP_SIZE32(ntohs(param->param_length));
1343 param_size = SCTP_SIZE32(ntohs(param->param_length));
1372 switch (ntohs(param->param_type)) {
1412 param_size = SCTP_SIZE32(ntohs(param->param_length));
1490 param_size = SCTP_SIZE32(ntohs(param->param_length));
1500 if (ntohs(param->param_type) == SCTP_DEL_IP_ADDRESS) {
1544 param_size = SCTP_SIZE32(ntohs(param->param_length));
1586 param_size = SCTP_SIZE32(ntohs(param->param_length));
1595 if (ntohs(param->param_type) == SCTP_SUCCESS_REPORT)
1604 param_size = SCTP_SIZE32(ntohs(param->param_length));
1639 param_size = SCTP_SIZE32(ntohs(param->param_length));
1646 if (ntohs(param->param_type) == SCTP_ADD_IP_ADDRESS)
1648 else if (ntohs(param->param_type) == SCTP_DEL_IP_ADDRESS)
1657 param_size = SCTP_SIZE32(ntohs(param->param_length));
2607 ntohl(assoc->l_vtag), ntohs(assoc->l_port),
2608 ntohl(assoc->g_vtag), ntohs(assoc->g_port),