Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78464
b: refs/heads/master
c: ae445d1
h: refs/heads/master
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Jan 28, 2008
1 parent 41cb137 commit a242696
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f831e90971dc942a9f2fcc918a5739eb6d4ef4c5
refs/heads/master: ae445d172ab4d342a0a9d64df499cca8d5ad61b3
2 changes: 1 addition & 1 deletion trunk/net/rxrpc/ar-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ rxrpc_incoming_connection(struct rxrpc_transport *trans,

candidate->trans = trans;
candidate->epoch = hdr->epoch;
candidate->cid = hdr->cid & __constant_cpu_to_be32(RXRPC_CIDMASK);
candidate->cid = hdr->cid & cpu_to_be32(RXRPC_CIDMASK);
candidate->service_id = hdr->serviceId;
candidate->security_ix = hdr->securityIndex;
candidate->in_clientflag = RXRPC_CLIENT_INITIATED;
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/rxrpc/ar-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static void rxrpc_post_packet_to_call(struct rxrpc_connection *conn,
read_unlock_bh(&conn->lock);

if (sp->hdr.flags & RXRPC_CLIENT_INITIATED &&
sp->hdr.seq == __constant_cpu_to_be32(1)) {
sp->hdr.seq == cpu_to_be32(1)) {
_debug("incoming call");
skb_queue_tail(&conn->trans->local->accept_queue, skb);
rxrpc_queue_work(&conn->trans->local->acceptor);
Expand Down Expand Up @@ -774,7 +774,7 @@ void rxrpc_data_ready(struct sock *sk, int count)
_debug("can't route call");
if (sp->hdr.flags & RXRPC_CLIENT_INITIATED &&
sp->hdr.type == RXRPC_PACKET_TYPE_DATA) {
if (sp->hdr.seq == __constant_cpu_to_be32(1)) {
if (sp->hdr.seq == cpu_to_be32(1)) {
_debug("first packet");
skb_queue_tail(&local->accept_queue, skb);
rxrpc_queue_work(&local->acceptor);
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/rxrpc/rxkad.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int rxkad_secure_packet(const struct rxrpc_call *call,

/* calculate the security checksum */
x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff);
x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
tmpbuf.x[0] = sp->hdr.callNumber;
tmpbuf.x[1] = x;

Expand Down Expand Up @@ -518,7 +518,7 @@ static int rxkad_verify_packet(const struct rxrpc_call *call,

/* validate the security checksum */
x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff);
x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
tmpbuf.x[0] = call->call_id;
tmpbuf.x[1] = x;

Expand Down

0 comments on commit a242696

Please sign in to comment.