summaryrefslogtreecommitdiffstats
path: root/qtctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'qtctl.c')
-rw-r--r--qtctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtctl.c b/qtctl.c
index e601ad9..7c3f2cf 100644
--- a/qtctl.c
+++ b/qtctl.c
@@ -20,8 +20,8 @@ int main()
msg = nlmsg_alloc();
genlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ, family, 0, NLM_F_ECHO, QUICKTUN_CMD_CREATE_DEVICE, 1);
- nla_put_u16(msg, QUICKTUN_A_TYPE, QUICKTUN_TAP_DEV);
- nla_put_u32(msg, QUICKTUN_A_REMOTE_ADDRESS, ntohl(inet_addr("192.168.0.2")));
+ nla_put_u16(msg, QUICKTUN_A_MODE, QUICKTUN_MODE_IP);
+ nla_put_u32(msg, QUICKTUN_A_REMOTE_ADDRESS, inet_addr("192.168.0.2"));
nl_send_auto_complete(sock, msg);