History

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.

Maninder Singh committed 8 years ago

Commit 258fe201 parent e30cb131 file · +1 −1Browse files

Unified · Split

tools/testing/selftests/net/tcp_mmap.c+1−1
@@ -402,7 +402,7 @@ int main(int argc, char *argv[]) · 401 unmodified lines
402 exit(1);402 exit(1);
403 }403 }
404 404
405 fd = socket(AF_INET6, SOCK_STREAM, 0);405 fd = socket(cfg_family, SOCK_STREAM, 0);
406 if (fd == -1) {406 if (fd == -1) {
407 perror("socket");407 perror("socket");
408 exit(1);408 exit(1);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t