Message ID | 1457408102-46662-12-git-send-email-ddecotig@gmail.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/ethtool.c b/ethtool.c index 761252f..f9336e3 100644 --- a/ethtool.c +++ b/ethtool.c @@ -4615,6 +4615,9 @@ opt_found: /* Open control socket. */ ctx.fd = socket(AF_INET, SOCK_DGRAM, 0); if (ctx.fd < 0) { + ctx.fd = socket(AF_UNIX, SOCK_DGRAM, 0); + } + if (ctx.fd < 0) { perror("Cannot get control socket"); return 70; }