further rhizome voice traffic detection hooks.

This commit is contained in:
gardners 2012-05-22 14:15:19 +09:30
parent 29bb86d9e7
commit d2c811b4b4
2 changed files with 4 additions and 1 deletions

View File

@ -412,8 +412,10 @@ int overlay_frame_process(int interface,overlay_frame *f)
else { else {
int qn=OQ_ORDINARY; int qn=OQ_ORDINARY;
/* Make sure voice traffic gets priority */ /* Make sure voice traffic gets priority */
if ((qf->type&OF_TYPE_BITS)==OF_TYPE_DATA_VOICE) if ((qf->type&OF_TYPE_BITS)==OF_TYPE_DATA_VOICE) {
qn=OQ_ISOCHRONOUS_VOICE; qn=OQ_ISOCHRONOUS_VOICE;
rhizome_saw_voice_traffic();
}
if (0) WHY("queuing frame for forwarding"); if (0) WHY("queuing frame for forwarding");
if (overlay_payload_enqueue(qn,qf,0)) { if (overlay_payload_enqueue(qn,qf,0)) {
WHY("failed to enqueue forwarded payload"); WHY("failed to enqueue forwarded payload");

View File

@ -917,6 +917,7 @@ int overlay_mdp_dispatch(overlay_mdp_frame *mdp,int userGeneratedFrameP,
||mdp->out.src.port==MDP_PORT_DNALOOKUP ||mdp->out.src.port==MDP_PORT_DNALOOKUP
||mdp->out.dst.port==MDP_PORT_DNALOOKUP) { ||mdp->out.dst.port==MDP_PORT_DNALOOKUP) {
q=OQ_ISOCHRONOUS_VOICE; q=OQ_ISOCHRONOUS_VOICE;
rhizome_saw_voice_traffic();
} }
if (overlay_payload_enqueue(q,frame,0)) if (overlay_payload_enqueue(q,frame,0))
{ {