diff options
Diffstat (limited to 'qtctl.c')
-rw-r--r-- | qtctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |