Fixed bip cleanup to enable initializing interfaces after cleanup. (#949)

This commit is contained in:
Steve Karg
2025-03-25 08:40:18 -05:00
committed by GitHub
parent d094278116
commit 0c45b50574
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -955,6 +955,9 @@ void bip_cleanup(void)
close(BIP_Broadcast_Socket);
}
BIP_Broadcast_Socket = -1;
/* these were set non-zero during interface configuration */
BIP_Address.s_addr = 0;
BIP_Broadcast_Addr.s_addr = 0;
return;
}