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