Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 258fe208 authored by Maninder Singh's avatar Maninder Singh Committed by David S. Miller
Browse files

selftest/net: fix protocol family to work for IPv4.



use actual protocol family passed by user rather than hardcoded
AF_INTE6 to cerate sockets.
current code is not working for IPv4.

Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarVaneet Narang <v.narang@samsung.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e30cb13c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ int main(int argc, char *argv[])
		exit(1);
	}

	fd = socket(AF_INET6, SOCK_STREAM, 0);
	fd = socket(cfg_family, SOCK_STREAM, 0);
	if (fd == -1) {
		perror("socket");
		exit(1);