mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
sending voice packets should now result in their being marked
as high priority (priority dispatch still outstanding).
This commit is contained in:
parent
dde520c465
commit
cd00204893
@ -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));
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user