You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
711 B
41 lines
711 B
#ifndef _TS3INIT_HEADER_H |
|
#define _TS3INIT_HEADER_H |
|
|
|
struct ts3_init_header_tag |
|
{ |
|
union |
|
{ |
|
char tag8[8]; |
|
__aligned_u64 tag64; |
|
}; |
|
}; |
|
|
|
struct ts3_init_header |
|
{ |
|
struct ts3_init_header_tag tag; |
|
__be16 packet_id; |
|
__be16 client_id; |
|
__u8 flags; |
|
__u8 client_version[4]; |
|
__u8 command; |
|
__u8 payload[20]; |
|
}; |
|
|
|
struct ts3_init_checked_header_data |
|
{ |
|
struct udphdr *udp, udp_buf; |
|
struct ts3_init_header* ts3_header, ts3_header_buf; |
|
}; |
|
|
|
enum |
|
{ |
|
COMMAND_GET_COOKIE = 0, |
|
COMMAND_SET_COOKIE, |
|
COMMAND_GET_PUZZLE, |
|
COMMAND_SET_PUZZLE, |
|
COMMAND_SOLVE_PUZZLE, |
|
COMMAND_RESET_PUZZLE, |
|
COMMAND_MAX |
|
}; |
|
|
|
#endif /* _TS3INIT_HEADER_H */
|
|
|