diff options
author | David Howells <dhowells@redhat.com> | 2017-06-05 16:30:49 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-06-05 16:30:49 +0300 |
commit | 68d6d1ae5c0429bcc8911e1db5f80fe2cd1ca974 (patch) | |
tree | fe2a180323f93465622820a2b59effbcaec62641 /net/rxrpc/rxkad.c | |
parent | aae1a2ce1416fa79213bd765cee5b961540265b3 (diff) | |
download | linux-68d6d1ae5c0429bcc8911e1db5f80fe2cd1ca974.tar.xz |
rxrpc: Separate the connection's protocol service ID from the lookup ID
Keep the rxrpc_connection struct's idea of the service ID that is exposed
in the protocol separate from the service ID that's used as a lookup key.
This allows the protocol service ID on a client connection to get upgraded
without making the connection unfindable for other client calls that also
would like to use the upgraded connection.
The connection's actual service ID is then returned through recvmsg() by
way of msg_name.
Whilst we're at it, we get rid of the last_service_id field from each
channel. The service ID is per-connection, not per-call and an entire
connection is upgraded in one go.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/rxkad.c')
-rw-r--r-- | net/rxrpc/rxkad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 29fe20ad04aa..46d1a1f0b55b 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c @@ -649,7 +649,7 @@ static int rxkad_issue_challenge(struct rxrpc_connection *conn) whdr.userStatus = 0; whdr.securityIndex = conn->security_ix; whdr._rsvd = 0; - whdr.serviceId = htons(conn->params.service_id); + whdr.serviceId = htons(conn->service_id); iov[0].iov_base = &whdr; iov[0].iov_len = sizeof(whdr); |