Compare commits

...
Author SHA1 Message Date
Leency d66bd135c0 kernel/net: seed ports and ISS from the TSC
Check kernel codestyle / Check kernel codestyle (pull_request) Successful in 22s
Test PR / Build (es_ES) (pull_request) Successful in 3m5s
Test PR / Build (en_US) (pull_request) Successful in 3m27s
Test PR / Build (ru_RU) (pull_request) Successful in 3m34s
2026-09-30 13:49:09 +03:00
2 changed files with 2 additions and 0 deletions

No files matched your search

+1
View File
@@ -226,6 +226,7 @@ macro socket_init {
mov ecx, 5 mov ecx, 5
rep stosd rep stosd
rdtsc ; seed, differs from boot to boot
@@: @@:
pseudo_random eax pseudo_random eax
cmp ax, EPHEMERAL_PORT_MIN cmp ax, EPHEMERAL_PORT_MIN
+1
View File
@@ -208,6 +208,7 @@ macro tcp_init {
mov ecx, (6*NET_DEVICES_MAX) mov ecx, (6*NET_DEVICES_MAX)
rep stosd rep stosd
rdtsc ; seed, differs from boot to boot
pseudo_random eax pseudo_random eax
mov [TCP_sequence_num], eax mov [TCP_sequence_num], eax