sending voice packets should now result in their being marked

as high priority (priority dispatch still outstanding).
This commit is contained in:
gardners 2012-04-25 13:08:18 +09:30
parent dde520c465
commit cd00204893
2 changed files with 4 additions and 1 deletions

View File

@ -433,6 +433,7 @@ int overlay_frame_process(int interface,overlay_frame *f)
overlay_rhizome_saw_advertisements(interface,f,now);
break;
case OF_TYPE_DATA:
case OF_TYPE_DATA_VOICE:
if (0) {
WHY("saw mdp containing frame");
printf(" src = %s\n",overlay_render_sid(f->source));

View File

@ -621,7 +621,9 @@ int overlay_mdp_dispatch(overlay_mdp_frame *mdp,int userGeneratedFrameP,
struct overlay_frame *frame;
frame=calloc(sizeof(overlay_frame),1);
if (!frame) return WHY("calloc() failed to allocate overlay frame");
frame->type=OF_TYPE_DATA;
/* give voice packets priority */
if (mdp->out.dst.port==MDP_PORT_VOMP) frame->type=OF_TYPE_DATA_VOICE;
else frame->type=OF_TYPE_DATA;
frame->prev=NULL;
frame->next=NULL;