summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/nvidia
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2017-12-25 14:43:04 -0800
committerDavid S. Miller <davem@davemloft.net>2018-01-02 13:26:58 -0500
commitd36f45e5b46723cf2d4147173e18c52d4143176d (patch)
treecfa17d9a6de3dc8f3702e753b6b786e3d650606a /drivers/net/ethernet/nvidia
parent41584f67d243a87105536bfab6865b6c4e23f365 (diff)
downloadlinux-d36f45e5b46723cf2d4147173e18c52d4143176d.tar.bz2
selftests/net: fix bugs in address and port initialization
Address/port initialization should work correctly regardless of the order in which command line arguments are supplied, E.g, cfg_port should be used to connect to the remote host even if it is processed after -D, src/dst address initialization should not require that [-4|-6] be specified before the -S or -D args, receiver should be able to bind to *.<cfg_port> Achieve this by making sure that the address/port structures are initialized after all command line options are parsed. Store cfg_port in host-byte order, and use htons() to set up the sin_port/sin6_port before bind/connect, so that the network system calls get the correct values in network-byte order. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nvidia')
0 files changed, 0 insertions, 0 deletions