summaryrefslogtreecommitdiffstats
path: root/qtctl.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-14 17:07:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-14 17:07:51 +0200
commitb476556d447c07244e71ff15d832efb19109ae29 (patch)
treedf51e7bd081e9b83a7b09aa4bb680cfa3fa7f6f6 /qtctl.c
parent888629be2dd5a0b7d2d6707efc8315c96dfb8867 (diff)
downloadmodquicktun-b476556d447c07244e71ff15d832efb19109ae29.tar
modquicktun-b476556d447c07244e71ff15d832efb19109ae29.zip
Handle packets correctly in IP 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);