diff --git a/overlay_mdp.c b/overlay_mdp.c index bd4adf54..c45b02e7 100644 --- a/overlay_mdp.c +++ b/overlay_mdp.c @@ -525,8 +525,7 @@ int overlay_saw_mdp_frame(int interface, overlay_mdp_frame *mdp,long long now) bzero(&mdpreply,sizeof(mdpreply)); /* mark as outgoing MDP message */ - mdp->packetTypeAndFlags&=MDP_FLAG_MASK; - mdp->packetTypeAndFlags|=MDP_TX; + mdpreply.packetTypeAndFlags=MDP_TX; /* Set source and destination addresses */ bcopy(&mdp->out.dst.sid,mdpreply.out.src.sid,SID_SIZE);