• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netinet/libalias/

Lines Matching defs:sctp_hdr

763 		    logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
768 logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
780 logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
814 SN_LOG(SN_LOG_LOW, logsctperror("ERROR: Invalid direction", msg.sctp_hdr->v_tag, rtnval, direction));
819 SN_LOG(SN_LOG_DETAIL, logsctperror("SN_DROP_PKT", msg.sctp_hdr->v_tag, rtnval, direction));
828 SN_LOG(SN_LOG_LOW, logsctperror("SN_PROCESSING_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
944 struct sctphdr* sctp_hdr = (struct sctphdr *) ((char *) ip + sizeof(*ip));
945 struct sctp_chunkhdr* chunk_hdr = (struct sctp_chunkhdr *) ((char *) sctp_hdr + sizeof(*sctp_hdr));
977 sctp_hdr->v_tag = sm->sctp_hdr->v_tag;
980 sctp_hdr->v_tag = (direction == SN_TO_LOCAL) ? assoc->g_vtag : assoc->l_vtag ;
983 sctp_hdr->v_tag = sm->sctp_hdr->v_tag;
986 sctp_hdr->v_tag = sm->sctpchnk.Init->initiate_tag;
994 sctp_hdr->src_port = sm->sctp_hdr->src_port;
995 sctp_hdr->dest_port = sm->sctp_hdr->dest_port;
999 sctp_hdr->src_port = sm->sctp_hdr->dest_port;
1000 sctp_hdr->dest_port = sm->sctp_hdr->src_port;
1007 sctp_hdr->checksum = 0;
1008 sctp_hdr->checksum = local_sctp_finalize_crc32(calculate_crc32c(0xffffffff, (unsigned char *) sctp_hdr, sctp_size));
1017 ntohs(sctp_hdr->dest_port),
1018 ntohl(sctp_hdr->v_tag), ntohl(sctp_hdr->checksum)));
1051 struct sctphdr *sctp_hdr;
1077 sm->sctp_hdr = NULL;
1081 sm->sctp_hdr = sctp_hdr = (struct sctphdr *) ip_next(pip);
1085 if (sctp_hdr->src_port == 0 || sctp_hdr->dest_port == 0)
1093 chunk_hdr = SN_SCTP_FIRSTCHUNK(sctp_hdr);
1104 *passoc = FindSctpGlobalT(la, pip->ip_src, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port);
1106 *passoc = FindSctpLocalT(la, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port);
1110 *passoc = FindSctpGlobal(la, pip->ip_src, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port, &partial_match);
1112 *passoc = FindSctpLocal(la, pip->ip_src, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port);
1129 if (sctp_hdr->v_tag == 0) { //Init requires vtag=0
1178 *passoc = FindSctpGlobal(la, ipv4addr, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port, &partial_match);
1320 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1382 sm->sctp_hdr->v_tag, 0, direction));
1391 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1399 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1414 sm->sctp_hdr->v_tag, 0, direction));
1426 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1433 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1446 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1453 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1525 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1543 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1559 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1571 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1580 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1643 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1697 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1786 assoc->l_port = sm->sctp_hdr->src_port;
1787 assoc->g_port = sm->sctp_hdr->dest_port;
1801 assoc->l_port = sm->sctp_hdr->dest_port;
1802 assoc->g_port = sm->sctp_hdr->src_port;