clnt.c (aae2006e9b0c294114915c13022fa348e1a88023) | clnt.c (f4a2e418bfd03a1f25f515e8a92ecd584d96cfc1) |
---|---|
1/* 2 * linux/net/sunrpc/clnt.c 3 * 4 * This file contains the high-level RPC interface. 5 * It is modeled as a finite state machine to support both synchronous 6 * and asynchronous requests. 7 * 8 * - RPC header generation and argument serialization. --- 1376 unchanged lines hidden (view full) --- 1385 */ 1386 dprintk("RPC: %5u %s: XDR representation not a multiple of" 1387 " 4 bytes: 0x%x\n", task->tk_pid, __func__, 1388 task->tk_rqstp->rq_rcv_buf.len); 1389 goto out_eio; 1390 } 1391 if ((len -= 3) < 0) 1392 goto out_overflow; | 1/* 2 * linux/net/sunrpc/clnt.c 3 * 4 * This file contains the high-level RPC interface. 5 * It is modeled as a finite state machine to support both synchronous 6 * and asynchronous requests. 7 * 8 * - RPC header generation and argument serialization. --- 1376 unchanged lines hidden (view full) --- 1385 */ 1386 dprintk("RPC: %5u %s: XDR representation not a multiple of" 1387 " 4 bytes: 0x%x\n", task->tk_pid, __func__, 1388 task->tk_rqstp->rq_rcv_buf.len); 1389 goto out_eio; 1390 } 1391 if ((len -= 3) < 0) 1392 goto out_overflow; |
1393 p += 1; /* skip XID */ | |
1394 | 1393 |
1394 p += 1; /* skip XID */ |
|
1395 if ((n = ntohl(*p++)) != RPC_REPLY) { 1396 dprintk("RPC: %5u %s: not an RPC reply: %x\n", | 1395 if ((n = ntohl(*p++)) != RPC_REPLY) { 1396 dprintk("RPC: %5u %s: not an RPC reply: %x\n", |
1397 task->tk_pid, __func__, n); | 1397 task->tk_pid, __func__, n); |
1398 goto out_garbage; 1399 } | 1398 goto out_garbage; 1399 } |
1400 |
|
1400 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { 1401 if (--len < 0) 1402 goto out_overflow; 1403 switch ((n = ntohl(*p++))) { 1404 case RPC_AUTH_ERROR: 1405 break; 1406 case RPC_MISMATCH: 1407 dprintk("RPC: %5u %s: RPC call version " --- 213 unchanged lines hidden --- | 1401 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { 1402 if (--len < 0) 1403 goto out_overflow; 1404 switch ((n = ntohl(*p++))) { 1405 case RPC_AUTH_ERROR: 1406 break; 1407 case RPC_MISMATCH: 1408 dprintk("RPC: %5u %s: RPC call version " --- 213 unchanged lines hidden --- |