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)
commit5f2d9c44389e7cd9fe192570f6f20199bc861eb8
tree1339480e8cf3b2efaa3f1543e7504e3eb0602408
parentaf338a9ea60acc6337fe9fcdcf664aec2520e541
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