Commit a746674b authored by liuyu's avatar liuyu

concourrence

parent 11529847
......@@ -25,7 +25,7 @@ AMF =
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "AMF";
LOG_LEVEL = "debug"
LOG_LEVEL = "off"
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
......
......@@ -236,7 +236,7 @@ void amf_sbi::handle_itti_message(
remote_uri.replace(found, ipv4ToReplace.length(), amf_cfg.smf_pool[0].ipv4);
}
std::cout << "modify smf url: " << remote_uri << std::endl;
// std::cout << "modify smf url: " << remote_uri << std::endl;
remote_uri += NSMF_PDU_SESSION_MODIFY;
......
......@@ -277,7 +277,7 @@ namespace ngap {
.choice.PathSwitchRequest;
}
else {
cout << "Check PathSwitchRequest message error!!!" << endl;
// cout << "Check PathSwitchRequest message error!!!" << endl;
return false;
}
}
......@@ -289,7 +289,7 @@ namespace ngap {
i++) {
switch (pathSwitchRequestIEs->protocolIEs.list.array[i]->id) {
case Ngap_ProtocolIE_ID_id_RAN_UE_NGAP_ID: {
cout << "decode ngap RAN_UE_NGAP_ID IE" << endl;
// cout << "decode ngap RAN_UE_NGAP_ID IE" << endl;
if (pathSwitchRequestIEs->protocolIEs.list.array[i]
->criticality == Ngap_Criticality_reject &&
pathSwitchRequestIEs->protocolIEs.list.array[i]
......@@ -309,7 +309,7 @@ namespace ngap {
}
} break;
case Ngap_ProtocolIE_ID_id_SourceAMF_UE_NGAP_ID: {
cout << "decod ngap SourceAMF_UE_NGAP_ID IE" << endl;
// cout << "decod ngap SourceAMF_UE_NGAP_ID IE" << endl;
if (pathSwitchRequestIEs->protocolIEs.list.array[i]
->criticality == Ngap_Criticality_reject &&
pathSwitchRequestIEs->protocolIEs.list.array[i]
......@@ -348,7 +348,7 @@ namespace ngap {
}
} break;
case Ngap_ProtocolIE_ID_id_UESecurityCapabilities: {
cout << "decode NGAP UESecurityCapabilities IE" << endl;
// cout << "decode NGAP UESecurityCapabilities IE" << endl;
if (pathSwitchRequestIEs->protocolIEs.list.array[i]
->criticality == Ngap_Criticality_ignore &&
pathSwitchRequestIEs->protocolIEs.list.array[i]
......@@ -368,8 +368,8 @@ namespace ngap {
}
} break;
case Ngap_ProtocolIE_ID_id_PDUSessionResourceToBeSwitchedDLList: {
cout << "decode NGAP PDUSessionResourceToBeSwitchedDLList IE"
<< endl;
// cout << "decode NGAP PDUSessionResourceToBeSwitchedDLList IE"
// << endl;
if (pathSwitchRequestIEs->protocolIEs.list.array[i]
->criticality == Ngap_Criticality_reject &&
pathSwitchRequestIEs->protocolIEs.list.array[i]
......
......@@ -118,9 +118,9 @@ int udp_server::udp_read_from_socket() {
//bytes_received = recvfrom(serverSocket, udp_recv, UDP_RECV_BUFFER_SIZE , 0, (struct sockaddr*)&r_endpoint.addr_storage, &r_endpoint.addr_storage_len);
if(bytes_received > 0){
printf("receive udp success\n");
gettimeofday(&time, NULL);
std::cout<<"receive from plugin, ms: "<<(time.tv_sec*1000 + time.tv_usec/1000)<<std::endl;
// printf("receive udp success\n");
// gettimeofday(&time, NULL);
// std::cout<<"receive from plugin, ms: "<<(time.tv_sec*1000 + time.tv_usec/1000)<<std::endl;
// cout<<"bytes"<<bytes_received<<endl;
// cout<<"content:"<<udp_recv<<endl;
// string udp_recv_str(&udp_recv[0],&udp_recv[strlen(udp_recv)]);
......@@ -273,7 +273,7 @@ void udp_server::handle_receive_udp(int r,uint8_t udp_recv[]){
}
// int _stream = udp_recv[r-2];
stream = udp_recv[r-6];
stream = udp_recv[r-5];
uint32_t _assoc_id = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment