From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WPZyx-00073p-3u for ltp-list@lists.sourceforge.net; Mon, 17 Mar 2014 16:01:43 +0000 Date: Mon, 17 Mar 2014 17:01:22 +0100 From: chrubis@suse.cz Message-ID: <20140317160122.GA1977@rei> References: <1392809376-13063-1-git-send-email-alexey.kodanev@oracle.com> <20140313144804.GB2503@rei.suse.cz> <5326CE7C.5070603@oracle.com> <20140317131803.GA3532@rei> <53271B93.6010500@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <53271B93.6010500@oracle.com> Subject: Re: [LTP] [PATCH v5] network: tcp_fastopen: add TCP Fast Open test List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Alexey Kodanev Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net Hi! > >>> This version looks good. I would be happier if the shell part was ported > >>> to the new test.sh but I can live with it as it is now. > >>> > >>> And this patch is blocked by the thread safety patch for the tst_res.c. > >>> I guess I will commit it next week, it has been on the ML long enough. > >>> > >> OK, thanks. I can do porting later along with the fix which I would like > >> to add to the test: there is recently added tst_get_unused_port() > >> function, but how can I use it in the script, should I add it to > >> tools/apicmds? > > Yes please. > > > OK, so what could be the parameters for the command? > The function takes family and type, as a result command could be as follows: > $ tst_get_unused_port ipv4 stream > then we need to parse strings and pass the right ones to the C function. > > or we can set ids and explain the meaning in the help: > $ tst_get_unused_port 1 0 > > Which one is better? I would vote for the strings. You can easily decleare an array of structures with string-value paris and search in these. It's not that much of work and the shell code would be much easier to read. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ 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