summaryrefslogtreecommitdiff
path: root/libhfcommon
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2018-01-08 23:18:47 +0100
committerRobert Swiecki <robert@swiecki.net>2018-01-08 23:18:47 +0100
commite98519e2043b173caef11f6382255b8df140c3eb (patch)
treef64c195f21195daab943c907d723b9a1539b0d87 /libhfcommon
parentf90fb15ba9bb03267769972790f236b887d48695 (diff)
downloadhonggfuzz-e98519e2043b173caef11f6382255b8df140c3eb.tar.gz
netdriver: use IPv6 for connections (also for IPv4)
Diffstat (limited to 'libhfcommon')
-rw-r--r--libhfcommon/ns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhfcommon/ns.c b/libhfcommon/ns.c
index 25c25f90..7d2f3563 100644
--- a/libhfcommon/ns.c
+++ b/libhfcommon/ns.c
@@ -88,9 +88,9 @@ bool nsEnter(uintptr_t cloneFlags) {
}
bool nsIfaceUp(const char* ifacename) {
- int sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_IP);
+ int sock = socket(PF_INET6, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP);
if (sock == -1) {
- PLOG_E("socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_IP)");
+ PLOG_E("socket(PF_INET6, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP)");
return false;
}