by default replace old MDP bindings instead of returning with an

error.
This commit is contained in:
gardners 2012-04-30 15:45:07 +09:30
parent 900bfab1e9
commit ae9ecd74c4

View File

@ -1217,7 +1217,7 @@ int overlay_mdp_recv(overlay_mdp_frame *mdp,int *ttl)
int overlay_mdp_bind(unsigned char *localaddr,int port)
{
overlay_mdp_frame mdp;
mdp.packetTypeAndFlags=MDP_BIND;
mdp.packetTypeAndFlags=MDP_BIND|MDP_FORCE;
bcopy(localaddr,mdp.bind.sid,SID_SIZE);
mdp.bind.port_number=port;
int result=overlay_mdp_send(&mdp,MDP_AWAITREPLY,5000);