8250 libnsl: Raw RPC client sends unlimited data

Review Request #524 - Created May 19, 2017 and updated

Information
Marcel Telka
illumos-gate
master
8250
807c3a7...
Reviewers
general
This fixes the raw RPC transport in libnsl to properly notify the other party
about the size of the transferred data between client and server.

Please note that the raw RPC transport is primarily used for testing purposes
only.
I tested using the test attached to the bug report:

$ ./test 
Raw:
Server received: 12345678
Server received: 12345678

Door:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments
$



$ LD_PRELOAD=$ROOT/lib/libnsl.so.1 ./test 
Raw:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments

Door:
Server received: 12345678
clnt_send #2 failed: RPC: Server can't decode arguments
$
Yuri Pankov
Marcel Telka
Review request changed

Change Summary:

psuedo -> pseudo

Commit:

-20f9453de1e57dbbbcf3cd815985f5df423dfd21
+807c3a70e4a677e7b58c0d7c6fc2bc4979e7c9d2

Diff:

Revision 2 (+171 -199)

Show changes

Yuri Pankov

Obviously, I'm not an expert here, but don't see anything wrong.

Loading...