Prash
unread,Jul 25, 2012, 6:53:09 PM7/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iper...@googlegroups.com
Hi,
I cross compiled iperf3 on ARM and after I started the binary I kept getting the usage irrespective of what option I pass. After code walk through and debugging I found a bug in the code. In iperf_api.c file iperf_parse_arguments function, ch variable needs to be int type instead of char type. Problem is getopt_long returns integer value and it is stored in char variable. Because of this while loop did not exit when -1 was returned by getopt_long, instead in the switch default case printed usage and then iperf was just exiting.
Thanks,
Prash