mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-12 21:33:03 +00:00
by default replace old MDP bindings instead of returning with an
error.
This commit is contained in:
parent
900bfab1e9
commit
ae9ecd74c4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user