https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c0c431b0eed0dd8176473…
commit c0c431b0eed0dd8176473be5e84654d01c4c810e
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Thu Apr 22 18:12:22 2021 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Thu Apr 22 18:12:22 2021 +0200
[TRANSLATION][WINLOGON] Small Romanian & Italian translation update
Small translation update as per the pushed 5f03339 commit.
---
base/system/winlogon/lang/it-IT.rc | 4 ++--
base/system/winlogon/lang/ro-RO.rc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/system/winlogon/lang/it-IT.rc b/base/system/winlogon/lang/it-IT.rc
index a891df6d6e5..0f85f8862b0 100644
--- a/base/system/winlogon/lang/it-IT.rc
+++ b/base/system/winlogon/lang/it-IT.rc
@@ -44,8 +44,8 @@ BEGIN
IDS_RUNNINGLOGONSCRIPTS "Esecuzione scripts di connessione..."
IDS_LOADINGYOURPERSONALSETTINGS "Caricamento delle impostazioni personali..."
IDS_CLOSINGNETWORKCONNECTIONS "Chiusura connessioni di rete..."
- IDS_REACTOSISRESTARTING "Restarting..."
- IDS_REACTOSISSHUTTINGDOWN "Shutting down..."
+ IDS_REACTOSISRESTARTING "Sto eseguendo il riavvio..."
+ IDS_REACTOSISSHUTTINGDOWN "Sto eseguendo l'arresto..."
IDS_PREPARETOSTANDBY "Preparazione Standby..."
IDS_PREPARETOHIBERNATE "Preparazione Ibernazione..."
IDS_SAVEYOURSETTINGS "Salvataggio delle impostazioni personali..."
diff --git a/base/system/winlogon/lang/ro-RO.rc b/base/system/winlogon/lang/ro-RO.rc
index 04789986a16..12a42b69b7b 100644
--- a/base/system/winlogon/lang/ro-RO.rc
+++ b/base/system/winlogon/lang/ro-RO.rc
@@ -53,8 +53,8 @@ BEGIN
IDS_RUNNINGLOGONSCRIPTS "Operații de autentificare în curs de efectuare…"
IDS_LOADINGYOURPERSONALSETTINGS "Configurații personale în curs de reconstituire…"
IDS_CLOSINGNETWORKCONNECTIONS "Conexiuni în rețea în curs de închidere…"
- IDS_REACTOSISRESTARTING "Restarting..."
- IDS_REACTOSISSHUTTINGDOWN "Shutting down..."
+ IDS_REACTOSISRESTARTING "Se repornește..."
+ IDS_REACTOSISSHUTTINGDOWN "Se închide..."
IDS_PREPARETOSTANDBY "Stare de veghe în curs de pregătire…"
IDS_PREPARETOHIBERNATE "Stare de hibernare în curs de pregătire…"
IDS_SAVEYOURSETTINGS "Configurații personale în curs de păstrare…"
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1ff3d1c395644af497ccc…
commit 1ff3d1c395644af497cccc56dc1a548136a23ec4
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Mon Apr 19 23:21:35 2021 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Tue Apr 20 18:28:36 2021 +0200
[DHCPCSVC] Change automatic address assignment to use hardware address
According to RFC 3927, the pseudo-random number generation algorithm MUST be chosen
so that different hosts do not generate the same sequence of numbers, and that the
pseudo-random number generator SHOULD be seeded using a value derived from the
IEEE 802 MAC address, so that a host will usually select the same IPv4 Link-Local
address each time it is booted.
---
base/services/dhcpcsvc/dhcp/dhclient.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/base/services/dhcpcsvc/dhcp/dhclient.c b/base/services/dhcpcsvc/dhcp/dhclient.c
index f840f5b876c..81fcd9c5000 100644
--- a/base/services/dhcpcsvc/dhcp/dhclient.c
+++ b/base/services/dhcpcsvc/dhcp/dhclient.c
@@ -1069,6 +1069,8 @@ void
state_panic(void *ipp)
{
struct interface_info *ip = ipp;
+ uint16_t address_low;
+ int i;
PDHCP_ADAPTER Adapter = AdapterFindInfo(ip);
note("No DHCPOFFERS received.");
@@ -1079,7 +1081,11 @@ state_panic(void *ipp)
DbgPrint("DHCPCSVC: Failed to receive a response from a DHCP server. An automatic private address will be assigned.\n");
/* FIXME: The address generation code sucks */
- AddIPAddress(htonl(0xA9FE0000 | (rand() % 0xFFFF)), //169.254.X.X
+ srand(0);
+ address_low = rand();
+ for (i = 0; i < ip->hw_address.hlen; i++)
+ address_low += ip->hw_address.haddr[i];
+ AddIPAddress(htonl(0xA9FE0000 | address_low), //169.254.X.X
htonl(0xFFFF0000), //255.255.0.0
Adapter->IfMib.dwIndex,
&Adapter->NteContext,