Lines Matching defs:sctp
222 #include <netinet/sctp.h>
451 "sctp",
1490 struct sctphdr *const sctp = (struct sctphdr *) outp;
1493 sctp->src_port = htons(ident);
1494 sctp->dest_port = htons(port + (fixedPort ? 0 : outdata->seq));
1495 sctp->v_tag = (sctp->src_port << 16) | sctp->dest_port;
1496 sctp->checksum = htonl(0);
1499 chk = (struct sctp_chunkhdr *)(sctp + 1);
1513 sctp->checksum = sctp_crc32c(sctp, protlen);
1520 struct sctphdr *const sctp = (struct sctphdr *) data;
1522 return (ntohs(sctp->src_port) == ident
1523 && ntohs(sctp->dest_port) == port + (fixedPort ? 0 : seq)
1524 && sctp->v_tag ==
1525 (u_int32_t)((sctp->src_port << 16) | sctp->dest_port));