send proper reset command to client

This commit is contained in:
Niels Werensteijn 2016-10-13 09:33:22 +02:00
parent 0babfde11d
commit 62810fe935
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ enum
COMMAND_SET_PUZZLE,
COMMAND_SOLVE_PUZZLE,
COMMAND_RESET_PUZZLE,
COMMAND_MAX
COMMAND_MAX,
COMMAND_RESET = 127
};
#endif /* _TS3INIT_HEADER_H */

View File

@ -170,7 +170,7 @@ ts3init_send_ipv4_reply(struct sk_buff *oldskb, const struct xt_action_param *pa
return false;
}
static const char ts3init_reset_package[] = {'T', 'S', '3', 'I', 'N', 'I', 'T', '1', 0x65, 0, 0x88, COMMAND_RESET_PUZZLE, 0 };
static const char ts3init_reset_package[] = {'T', 'S', '3', 'I', 'N', 'I', 'T', '1', 0x65, 0, 0x88, COMMAND_RESET, 0 };
static unsigned int
ts3init_reset_ipv4_tg(struct sk_buff *skb, const struct xt_action_param *par)