From f85dc5034f9573be3b97c5c4faa8cace978b501a Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 3 Mar 2023 15:48:44 +0900 Subject: [PATCH] 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 --- tests/helpers/test_mkfds.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.47.3