From: Masatake YAMATO Date: Fri, 3 Mar 2023 06:48:44 +0000 (+0900) Subject: tests: (mkfds) don't specify a protocol in connect(2) for AF_PACKET socket X-Git-Tag: v2.39-rc1~12^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f85dc5034f9573be3b97c5c4faa8cace978b501a;p=thirdparty%2Futil-linux.git tests: (mkfds) don't specify a protocol in connect(2) for AF_PACKET socket The protocol is specified in socket(2) stage already. Signed-off-by: Masatake YAMATO --- diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index 8a67e55681..0263854a08 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -659,7 +659,6 @@ static int make_packet_socket(int socktype, const char *interface) memset(&addr, 0, sizeof(struct sockaddr_ll)); addr.sll_family = AF_PACKET; - addr.sll_protocol = ETH_P_ALL; addr.sll_ifindex = if_nametoindex(interface); if (addr.sll_ifindex == 0) { int e = errno;