public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Question with secure_ipv4_port_ephemeral() implementation
@ 2012-04-20 12:30 Tetsuo Handa
  2012-04-22  3:29 ` Ben Hutchings
  0 siblings, 1 reply; 5+ messages in thread
From: Tetsuo Handa @ 2012-04-20 12:30 UTC (permalink / raw)
  To: netdev

Commit 6e5714ea "net: Compute protocol sequence numbers and fragment IDs using
MD5." removed periodic get_random_bytes() calls. After that commit,

  static u32 net_secret[MD5_MESSAGE_BYTES / 4] ____cacheline_aligned;

is filled with random bytes for only once upon boot and is never updated again.
Then, shouldn't net_secret be marked as __read_mostly?

Just from curiosity... what was the reason for changing
secure_ipv4_port_ephemeral() generate same return value for same arguments?
Was periodically changing return value for same arguments unfriendly with NAT
or something?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-22 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-20 12:30 Question with secure_ipv4_port_ephemeral() implementation Tetsuo Handa
2012-04-22  3:29 ` Ben Hutchings
2012-04-22  5:20   ` Tetsuo Handa
2012-04-22 14:21     ` Ben Hutchings
2012-04-22 14:38       ` Tetsuo Handa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox