From b476556d447c07244e71ff15d832efb19109ae29 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 14 Apr 2011 17:07:51 +0200 Subject: Handle packets correctly in IP mode --- qtctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtctl.c') 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); -- cgit v1.2.3