Skip to content

Commit

Permalink
fix default codepoint for QoS table
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo Yanagida committed May 30, 2024
1 parent d185dd0 commit f839918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions daemon/qos/qos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ Qos::Qos()
m_qosTable = QosTable();

Name prioPrefix("/prio");
QosEntry entry = QosEntry(prioPrefix, 0b101110);
m_qosTable.push(entry);
QosEntry prioEntry = QosEntry(prioPrefix, BOOST_BINARY(10111000));
m_qosTable.push(prioEntry);
Name streaming_A_live_prefix("/streaming_service_A");
QosEntry streaming_A_live = QosEntry(streaming_A_live_prefix,BOOST_BINARY(10111000));
m_qosTable.push(streaming_A_live);
}

void
Expand Down
5 changes: 3 additions & 2 deletions daemon/table/qos_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace qos{
return *it;
}
}
QosEntry wildcard = QosEntry("*",BOOST_BINARY( 10111000 ));
QosEntry wildcard = QosEntry("*",BOOST_BINARY( 00000000 ));
return wildcard;
}

Expand All @@ -48,9 +48,10 @@ namespace qos{
int index = 0;
for(it = this->m_policy_vector.begin(); it != this->m_policy_vector.end(); it++,index++) {
if(it->prefixMatch(name)){
std::cout<<name.toUri()<<std::endl;
return it->getFbField();
}
}
return BOOST_BINARY( 10111000 );
return BOOST_BINARY( 00000000 ); //CS0 Best Effort (0)
}
}}

0 comments on commit f839918

Please sign in to comment.