Lines Matching refs:sctp_hdr

735 		    logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
740 logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
752 logsctperror("SN_PARSE_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
786 SN_LOG(SN_LOG_LOW, logsctperror("ERROR: Invalid direction", msg.sctp_hdr->v_tag, rtnval, direction));
791 SN_LOG(SN_LOG_DETAIL, logsctperror("SN_DROP_PKT", msg.sctp_hdr->v_tag, rtnval, direction));
800 SN_LOG(SN_LOG_LOW, logsctperror("SN_PROCESSING_ERROR", msg.sctp_hdr->v_tag, rtnval, direction));
915 struct sctphdr* sctp_hdr = (struct sctphdr *) ((char *) ip + sizeof(*ip));
916 struct sctp_chunkhdr* chunk_hdr = (struct sctp_chunkhdr *) ((char *) sctp_hdr + sizeof(*sctp_hdr));
948 sctp_hdr->v_tag = sm->sctp_hdr->v_tag;
951 sctp_hdr->v_tag = (direction == SN_TO_LOCAL) ? assoc->g_vtag : assoc->l_vtag ;
954 sctp_hdr->v_tag = sm->sctp_hdr->v_tag;
957 sctp_hdr->v_tag = sm->sctpchnk.Init->initiate_tag;
965 sctp_hdr->src_port = sm->sctp_hdr->src_port;
966 sctp_hdr->dest_port = sm->sctp_hdr->dest_port;
970 sctp_hdr->src_port = sm->sctp_hdr->dest_port;
971 sctp_hdr->dest_port = sm->sctp_hdr->src_port;
978 sctp_hdr->checksum = 0;
979 sctp_hdr->checksum = local_sctp_finalize_crc32(calculate_crc32c(0xffffffff, (unsigned char *) sctp_hdr, sctp_size));
987 inet_ntoa(ip->ip_dst),ntohs(sctp_hdr->dest_port),
988 ntohl(sctp_hdr->v_tag), ntohl(sctp_hdr->checksum)));
1021 struct sctphdr *sctp_hdr;
1047 sm->sctp_hdr = NULL;
1051 sm->sctp_hdr = sctp_hdr = (struct sctphdr *) ip_next(pip);
1055 if (sctp_hdr->src_port == 0 || sctp_hdr->dest_port == 0)
1063 chunk_hdr = SN_SCTP_FIRSTCHUNK(sctp_hdr);
1074 *passoc = FindSctpGlobalT(la, pip->ip_src, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port);
1076 *passoc = FindSctpLocalT(la, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->dest_port, sctp_hdr->src_port);
1080 *passoc = FindSctpGlobal(la, pip->ip_src, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port, &partial_match);
1082 *passoc = FindSctpLocal(la, pip->ip_src, pip->ip_dst, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port);
1099 if (sctp_hdr->v_tag == 0){ //Init requires vtag=0
1148 *passoc = FindSctpGlobal(la, ipv4addr, sctp_hdr->v_tag, sctp_hdr->src_port, sctp_hdr->dest_port, &partial_match);
1289 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1351 sm->sctp_hdr->v_tag, 0, direction));
1360 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1368 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1382 sm->sctp_hdr->v_tag, 0, direction));
1394 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1401 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1414 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1421 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1492 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1510 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1526 sm->sctp_hdr->v_tag, assoc->num_Gaddr, direction));
1537 sm->sctp_hdr->v_tag, sysctl_track_global_addresses, direction));
1546 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1608 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1661 sm->sctp_hdr->v_tag, sysctl_param_proc_limit, direction));
1749 assoc->l_port = sm->sctp_hdr->src_port;
1750 assoc->g_port = sm->sctp_hdr->dest_port;
1764 assoc->l_port = sm->sctp_hdr->dest_port;
1765 assoc->g_port = sm->sctp_hdr->src_port;