]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (mkfds) don't specify a protocol in connect(2) for AF_PACKET socket
authorMasatake YAMATO <yamato@redhat.com>
Fri, 3 Mar 2023 06:48:44 +0000 (15:48 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 5 Mar 2023 18:17:30 +0000 (03:17 +0900)
The protocol is specified in socket(2) stage already.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c

index 8a67e5568180a8ac55489a271ddc4c8cf3addb92..0263854a0822e56be9485b3c7ad232f3ac740679 100644 (file)
@@ -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;