]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Randomise epoch and starting client conn ID values
authorDavid Howells <dhowells@redhat.com>
Fri, 2 Sep 2016 21:39:45 +0000 (22:39 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 4 Sep 2016 20:41:39 +0000 (21:41 +0100)
commitc02d58b626e4d42c6928d31d61d1b51f0fa2a7ca
tree1339480e8cf3b2efaa3f1543e7504e3eb0602408
parent2d4dbb77db9c8bdbb90c004822a5139c0d417787
rxrpc: Randomise epoch and starting client conn ID values

Create a random epoch value rather than a time-based one on startup and set
the top bit to indicate that this is the case.

Also create a random starting client connection ID value.  This will be
incremented from here as new client connections are created.

Signed-off-by: David Howells <dhowells@redhat.com>
include/rxrpc/packet.h
net/rxrpc/af_rxrpc.c