Fixed bip cleanup to enable initializing interfaces after cleanup. (#949)
This commit is contained in:
@@ -763,6 +763,9 @@ void bip_cleanup(void)
|
|||||||
close(BIP_Broadcast_Socket);
|
close(BIP_Broadcast_Socket);
|
||||||
}
|
}
|
||||||
BIP_Broadcast_Socket = -1;
|
BIP_Broadcast_Socket = -1;
|
||||||
|
/* these were set non-zero during interface configuration */
|
||||||
|
BIP_Address.s_addr = 0;
|
||||||
|
BIP_Broadcast_Addr.s_addr = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -955,6 +955,9 @@ void bip_cleanup(void)
|
|||||||
close(BIP_Broadcast_Socket);
|
close(BIP_Broadcast_Socket);
|
||||||
}
|
}
|
||||||
BIP_Broadcast_Socket = -1;
|
BIP_Broadcast_Socket = -1;
|
||||||
|
/* these were set non-zero during interface configuration */
|
||||||
|
BIP_Address.s_addr = 0;
|
||||||
|
BIP_Broadcast_Addr.s_addr = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -920,6 +920,9 @@ void bip_cleanup(void)
|
|||||||
BIP_Initialized = false;
|
BIP_Initialized = false;
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
}
|
}
|
||||||
|
/* these were set non-zero during interface configuration */
|
||||||
|
BIP_Address.s_addr = 0;
|
||||||
|
BIP_Broadcast_Addr.s_addr = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user