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.
46 lines
879 B
46 lines
879 B
#ifndef _TS3INIT_MATCH_H |
|
#define _TS3INIT_MATCH_H |
|
|
|
/* Enums for get_cookie and get_puzzle matches */ |
|
enum |
|
{ |
|
CHK_COMMON_CLIENT_VERSION = 1 << 0, |
|
CHK_COMMON_VALID_MASK = (1 << 1) -1 |
|
}; |
|
|
|
/* Enums and structs for get_cookie */ |
|
enum |
|
{ |
|
CHK_GET_COOKIE_CHECK_TIMESTAMP = 1 << 0, |
|
CHK_GET_COOKIE_VALID_MASK = (1 << 1) -1 |
|
}; |
|
|
|
struct xt_ts3init_get_cookie_mtinfo |
|
{ |
|
__u8 common_options; |
|
__u8 specific_options; |
|
__u16 reserved1; |
|
__u32 min_client_version; |
|
__u32 max_utc_offset; |
|
}; |
|
|
|
|
|
/* Enums and structs for get_puzzle */ |
|
enum |
|
{ |
|
CHK_GET_PUZZLE_CHECK_COOKIE = 1 << 0, |
|
CHK_GET_PUZZLE_VALID_MASK = (1 << 1) - 1, |
|
|
|
SEED_LEN = 60 |
|
}; |
|
|
|
struct xt_ts3init_get_puzzle_mtinfo |
|
{ |
|
__u8 common_options; |
|
__u8 specific_options; |
|
__u16 reserved1; |
|
__u32 min_client_version; |
|
__u8 cookie_seed[SEED_LEN]; |
|
}; |
|
|
|
#endif /* _TS3INIT_MATCH_H */
|
|
|