diff options
author | sharath <sharathkumarboyanapally@gmail.com> | 2018-10-22 20:45:22 +0530 |
---|---|---|
committer | sharath <sharathkumarboyanapally@gmail.com> | 2018-10-22 20:46:00 +0530 |
commit | 9980129098c35a2441d681b7a74c43823a9285fb (patch) | |
tree | 30bb298dc804496cae47702b117c375355a5f186 /stacks/lwip_stack/lwip_src/api/spl_api_msg.c | |
parent | 6f487b9221e5a0a5dd95d150509684570473ae1d (diff) |
suppressing get_sockopt error for iperf + lwip
Change-Id: Ib0746f908cca0bafbde87b25d99b246fe350636b
Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
Diffstat (limited to 'stacks/lwip_stack/lwip_src/api/spl_api_msg.c')
-rw-r--r-- | stacks/lwip_stack/lwip_src/api/spl_api_msg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c index 1c9bf92..d8e088a 100644 --- a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c +++ b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c @@ -22,6 +22,7 @@ //#include "sockets.h" #include <netinet/in.h> #include <errno.h> +#include <netinet/tcp.h> #include "stackx_prot_com.h" #include "spl_api.h" @@ -2523,7 +2524,12 @@ do_get_tcpproto_getsockopt_internal (struct common_pcb *cpcb, NSPOL_LOGDBG (SOCKETS_DEBUG, "]fd=%d,SPL_TCP_KEEPCNT=%d", cpcb->socket, *(int *) optval); break; - + case SPL_TCP_INFO: + ((struct tcp_info *) optval)->tcpi_total_retrans = (int) tpcb->nrtx; + ((struct tcp_info *) optval)->tcpi_snd_mss = (int) tpcb->mss; + ((struct tcp_info *) optval)->tcpi_rtt = (int) tpcb->sa; + ((struct tcp_info *) optval)->tcpi_snd_cwnd = (int) tpcb->cwnd; + break; default: NSPOL_LOGDBG (SOCKETS_DEBUG, "unsupported]optname=%d", optname); SET_MSG_ERR (m, EOPNOTSUPP); |