Skip to content
Commit 169020a8 authored by Maochen Wang's avatar Maochen Wang Committed by Henrik Brix Andersen
Browse files

net: zperf: Fix TOS option not working in zperf



When the zperf command is called with '-S' option which means IP_TOS
for IPv4 and IPV6_TCLASS for IPv6, an error is printed and the
setting does not work. The socket option handling was changed by
commit 77e522a5('net: context: Refactor option setters'), but the
callers of option setters were not changed. This causes the IP_TOS
or IPV6_TCLASS option failed to set. The fix is to use uint8_t to
store the value of the -S option.

Signed-off-by: default avatarMaochen Wang <maochen.wang@nxp.com>
(cherry picked from commit e7444dcf)
parent da2a9af2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment