From: chrubis@suse.cz
To: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 4/7] rpc-tirpc: the "bottom level" fixes
Date: Tue, 29 Apr 2014 15:19:50 +0200 [thread overview]
Message-ID: <20140429131950.GB12523@rei> (raw)
In-Reply-To: <1395928590-28408-5-git-send-email-stanislav.kholmanskikh@oracle.com>
Hi!
> The functions from the "bottom level" TI-RPC API:
> * svc_dg_create
> * svc_vc_create
> * clnt_dg_create
> * clnt_vc_create
> do not accept RPC_ANYFD parameter. This parameter is for the "expert level" API.
>
> These functions should be passed with a bound socket.
>
> Implemented it using bound_socket() function.
>
> Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
> ---
> .../tirpc_bottomlevel_clnt_call.c | 18 ++++++++++++++--
> .../tirpc_clnt_dg_create.c | 16 ++++++++++++++-
> .../tirpc_clnt_vc_create.c | 18 +++++++++++++++-
> .../tirpc_svc_dg_create.c | 16 ++++++++++++++-
> .../tirpc_svc_vc_create.c | 21 +++++++++++++++++++-
> 5 files changed, 81 insertions(+), 8 deletions(-)
>
> diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call.c b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call.c
> index 2498965..28d14ff 100644
> --- a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call.c
> +++ b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call.c
> @@ -32,6 +32,8 @@
> #include <netinet/in.h>
> #include <tirpc/rpc/svc.h>
> #include <errno.h>
> +#include <unistd.h>
> +#include "librpc-tirpc.h"
>
> #define PROCNUM 1
> #define VERSNUM 1
> @@ -54,9 +56,10 @@ int main(int argn, char *argc[])
> int var_snd = 10;
> int var_rec = -1;
> struct timeval tv;
> + int sock;
>
> - tv.tv_sec = 0;
> - tv.tv_usec = 100;
> + tv.tv_sec = 1;
> + tv.tv_usec = 0;
You also modify timeout here, this should be mentioned in the commit
message as well.
> if (nconf == (struct netconfig *)NULL) {
I would also remove this useless casts (in a cleanup patch).
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-04-29 13:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 13:56 [LTP] rpc-tirpc: TI-RPC fixes Stanislav Kholmanskikh
2014-03-27 13:56 ` [LTP] [PATCH 1/7] rpc-tirpc: introduced a common library Stanislav Kholmanskikh
2014-03-27 13:56 ` [LTP] [PATCH 2/7] rpc-tirpc: introduced bound_socket() Stanislav Kholmanskikh
2014-04-29 13:15 ` chrubis
2014-03-27 13:56 ` [LTP] [PATCH 3/7] rpc-tirpc: cleanup of the "bottom level" TI-RPC test binaries Stanislav Kholmanskikh
2014-03-27 13:56 ` [LTP] [PATCH 4/7] rpc-tirpc: the "bottom level" fixes Stanislav Kholmanskikh
2014-04-29 13:19 ` chrubis [this message]
2014-03-27 13:56 ` [LTP] [PATCH 5/7] rpc-tirpc: tirpc_svc_5 fixes Stanislav Kholmanskikh
2014-03-27 13:56 ` [LTP] [PATCH 6/7] rpc-tirpc: tirpc_rpcb_set and tirpc_rpcb_unset cleanup Stanislav Kholmanskikh
2014-03-27 13:56 ` [LTP] [PATCH 7/7] rpc-tirpc: fix arguments to rpcb_set and rpcb_unset test cases Stanislav Kholmanskikh
2014-04-29 13:27 ` [LTP] rpc-tirpc: TI-RPC fixes chrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140429131950.GB12523@rei \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=stanislav.kholmanskikh@oracle.com \
--cc=vasily.isaenko@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox