[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b61LsDehV62SU09O6UYNGcm8RWiA1Nz8ucKVJjafwUPym4B7xNMsUm4ot-xccQsFsD9XfU_46YYPICrJ-9CIq8YhkWkCilg6XG96csNy-1E=@proton.me>
Date: Mon, 23 Sep 2024 17:43:59 +0000
From: Tj <tj.iam.tj@...ton.me>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, SeongJae Park <sjpark@...zon.de>, Joanne Koong <joannelkoong@...il.com>
Subject: Bug: tools/testing: incorrect usage of setsockopt() option value as ORed flags
$ git grep -n 'SO_REUSEADDR | SO_REUSEPORT' tools/testing/selftests/net
tools/testing/selftests/net/bind_bhash.c:78: sock_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr);
tools/testing/selftests/net/bind_bhash.c:106: listener_fd = bind_socket(SO_REUSEADDR | SO_REUSEPORT, setup_addr);
tools/testing/selftests/net/fin_ack_lat.c:125: if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT,
setsockopt() optname is a single option not an ORed combination of flags.
Powered by blists - more mailing lists