commit | 55a0e7001dd1c6b46fe471f9070dab3c1a842037 | [log] [tgz] |
---|---|---|
author | Bub Wei <bub.wei@unisoc.com> | Wed Feb 13 15:28:18 2019 +0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Feb 18 15:12:27 2019 -0500 |
tree | 37a6327f1398a265e7f6b25733738dbfbf247636 | |
parent | d4d61895b8afeba740ad64e60e57b51c00ae9b05 [diff] |
samples: net: zperf: Refactor udp_received Use the state machine states to determine if the session has ended. This way zperf will properly reply stat packet to remote client even if duration of the session is non zero. Also we don't need to update counter (received packet number) at end of the session. Note: if id < 0, it means session end, otherwise it's session ongoing. (id is the first feild of application data from remote client). Signed-off-by: Bub Wei <bub.wei@unisoc.com>