* [LTP] svc_vc_create/clnt_vc_create and RPC_ANYFD
@ 2014-03-25 15:35 Stanislav Kholmanskikh
2014-03-25 15:56 ` [LTP] [Libtirpc-devel] " Chuck Lever
0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Kholmanskikh @ 2014-03-25 15:35 UTC (permalink / raw)
To: libtirpc List; +Cc: vasily Isaenko, ltp-list
Hi!
Sorry, but yet another question regarding rpc-tirpc-full-test-suite.
Some binaries from this suite pass RPC_ANYFD to svc_vc_create() or
clnt_vc_create().
Like this one -
https://github.com/linux-test-project/ltp/blob/master/testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_5/tirpc_svc_5.c
:
transp = svc_vc_create(RPC_ANYFD, 1024, 1024);
And, of course, the tests using this fail.
I dig into the libtirpc sources and didn't found anything that could
state that we may pass RPC_ANYFD to these functions.
From svc_vc_create() comments:
"The filedescriptor passed in is expected to refer to a bound, but
not yet connected socket."
and from clnt_vc_create():
"fd should be an open socket"
So invoking svc_vc_create(RPC_ANYFD,...) or clnt_vc_create(RPC_ANYFD,
...) is incorrect. Right?
Thank you.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [Libtirpc-devel] svc_vc_create/clnt_vc_create and RPC_ANYFD
2014-03-25 15:35 [LTP] svc_vc_create/clnt_vc_create and RPC_ANYFD Stanislav Kholmanskikh
@ 2014-03-25 15:56 ` Chuck Lever
2014-03-26 6:58 ` Stanislav Kholmanskikh
0 siblings, 1 reply; 3+ messages in thread
From: Chuck Lever @ 2014-03-25 15:56 UTC (permalink / raw)
To: Stanislav Kholmanskikh; +Cc: vasily Isaenko, ltp-list, libtirpc List
On Mar 25, 2014, at 8:35 AM, Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> wrote:
> Hi!
>
> Sorry, but yet another question regarding rpc-tirpc-full-test-suite.
>
> Some binaries from this suite pass RPC_ANYFD to svc_vc_create() or
> clnt_vc_create().
>
> Like this one -
> https://github.com/linux-test-project/ltp/blob/master/testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_5/tirpc_svc_5.c
> :
>
> transp = svc_vc_create(RPC_ANYFD, 1024, 1024);
>
> And, of course, the tests using this fail.
>
> I dig into the libtirpc sources and didn't found anything that could
> state that we may pass RPC_ANYFD to these functions.
>
> From svc_vc_create() comments:
> "The filedescriptor passed in is expected to refer to a bound, but
> not yet connected socket."
>
> and from clnt_vc_create():
> "fd should be an open socket"
>
> So invoking svc_vc_create(RPC_ANYFD,...) or clnt_vc_create(RPC_ANYFD,
> ...) is incorrect. Right?
I don’t see anything in
http://docs.oracle.com/cd/E19504-01/802-5885/802-5885.pdf
that contradicts that.
AFAICT RPC_ANYFD is OK for the so-called “expert level” API, which means clnt_tli_create(3t) and svc_tli_create(3t).
It is also OK for the legacy APIs svctcp_create() and clnttcp_create() to take RPC_ANYSOCK.
--
Chuck Lever
chucklever@gmail.com
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [Libtirpc-devel] svc_vc_create/clnt_vc_create and RPC_ANYFD
2014-03-25 15:56 ` [LTP] [Libtirpc-devel] " Chuck Lever
@ 2014-03-26 6:58 ` Stanislav Kholmanskikh
0 siblings, 0 replies; 3+ messages in thread
From: Stanislav Kholmanskikh @ 2014-03-26 6:58 UTC (permalink / raw)
To: Chuck Lever; +Cc: vasily Isaenko, ltp-list, libtirpc List
On 03/25/2014 07:56 PM, Chuck Lever wrote:
>
> On Mar 25, 2014, at 8:35 AM, Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> wrote:
>
>> Hi!
>>
>> Sorry, but yet another question regarding rpc-tirpc-full-test-suite.
>>
>> Some binaries from this suite pass RPC_ANYFD to svc_vc_create() or
>> clnt_vc_create().
>>
>> Like this one -
>> https://github.com/linux-test-project/ltp/blob/master/testcases/network/rpc/rpc-tirpc-full-test-suite/tests_pack/tirpc_svc_5/tirpc_svc_5.c
>> :
>>
>> transp = svc_vc_create(RPC_ANYFD, 1024, 1024);
>>
>> And, of course, the tests using this fail.
>>
>> I dig into the libtirpc sources and didn't found anything that could
>> state that we may pass RPC_ANYFD to these functions.
>>
>> From svc_vc_create() comments:
>> "The filedescriptor passed in is expected to refer to a bound, but
>> not yet connected socket."
>>
>> and from clnt_vc_create():
>> "fd should be an open socket"
>>
>> So invoking svc_vc_create(RPC_ANYFD,...) or clnt_vc_create(RPC_ANYFD,
>> ...) is incorrect. Right?
>
> I don’t see anything in
>
> http://docs.oracle.com/cd/E19504-01/802-5885/802-5885.pdf
>
> that contradicts that.
>
> AFAICT RPC_ANYFD is OK for the so-called “expert level” API, which means clnt_tli_create(3t) and svc_tli_create(3t).
>
> It is also OK for the legacy APIs svctcp_create() and clnttcp_create() to take RPC_ANYSOCK.
>
Thank you.
> --
> Chuck Lever
> chucklever@gmail.com
>
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-26 6:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 15:35 [LTP] svc_vc_create/clnt_vc_create and RPC_ANYFD Stanislav Kholmanskikh
2014-03-25 15:56 ` [LTP] [Libtirpc-devel] " Chuck Lever
2014-03-26 6:58 ` Stanislav Kholmanskikh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox