Lines Matching refs:sctp
1520 struct sctphdr *const sctp = (struct sctphdr *) outp; in sctp_prep() local
1525 sctp->src_port = htons(ident); in sctp_prep()
1526 sctp->dest_port = htons(port + (fixedPort ? 0 : outdata->seq)); in sctp_prep()
1529 sctp->v_tag = 0; in sctp_prep()
1531 sctp->v_tag = (sctp->src_port << 16) | sctp->dest_port; in sctp_prep()
1533 sctp->checksum = htonl(0); in sctp_prep()
1543 init = (struct sctp_init_chunk *)(sctp + 1); in sctp_prep()
1548 init->init.initiate_tag = (sctp->src_port << 16) | in sctp_prep()
1549 sctp->dest_port; in sctp_prep()
1572 chk = (struct sctp_chunkhdr *)(sctp + 1); in sctp_prep()
1588 sctp->checksum = sctp_crc32c(sctp, protlen); in sctp_prep()
1595 struct sctphdr *const sctp = (struct sctphdr *) data; in sctp_check() local
1597 if (ntohs(sctp->src_port) != ident || in sctp_check()
1598 ntohs(sctp->dest_port) != port + (fixedPort ? 0 : seq)) in sctp_check()
1602 return (sctp->v_tag == in sctp_check()
1603 (u_int32_t)((sctp->src_port << 16) | sctp->dest_port)); in sctp_check()
1609 return (sctp->v_tag == 0); in sctp_check()