diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-14 17:07:51 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-14 17:07:51 +0200 |
commit | b476556d447c07244e71ff15d832efb19109ae29 (patch) | |
tree | df51e7bd081e9b83a7b09aa4bb680cfa3fa7f6f6 /qtctl.c | |
parent | 888629be2dd5a0b7d2d6707efc8315c96dfb8867 (diff) | |
download | modquicktun-b476556d447c07244e71ff15d832efb19109ae29.tar modquicktun-b476556d447c07244e71ff15d832efb19109ae29.zip |
Handle packets correctly in IP mode
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); |