Browse Source

send proper reset command to client

pull/1/head
Niels Werensteijn 8 years ago
parent
commit
62810fe935
  1. 3
      src/ts3init_header.h
  2. 2
      src/ts3init_target.c

3
src/ts3init_header.h

@ -35,7 +35,8 @@ enum @@ -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 */

2
src/ts3init_target.c

@ -170,7 +170,7 @@ ts3init_send_ipv4_reply(struct sk_buff *oldskb, const struct xt_action_param *pa @@ -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)

Loading…
Cancel
Save