Hi,
echo test is failing with the below errors as we didn't initialized the
'addrlen' parameter of getsockname.
####################################
...
...
Creating socket .....
echoes 1 TBROK : getsockname call failed (pid=7086): Invalid
argument
echo: Invalid argument
...
...
####################################
So, attached the patch which initializes the 'addrlen' parameter.
Please correct if anything is wrong.
Thanks
Muni
--- /ltp-full-20100430/testcases/network/tcp_cmds/echo/echoes.c 2010-06-09 01:20:39.000000000 -0400
+++ /ltp-full-20100430/testcases/network/tcp_cmds/echo/echoes_new.c 2010-06-09 01:20:29.000000000 -0400
@@ -253,6 +253,7 @@
}
#ifdef DEBUG
+ addrlen = sizeof(struct sockaddr);
/* printf("addrlen=%d\n", addrlen); */
/* printf("ai->ai_addr=%s\n", inet_ntoa(ai->ai_addr)); */
if (getsockname(s, &address, &addrlen) == -1) {
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list