33 |
__attribute__ ((packed)); |
__attribute__ ((packed)); |
34 |
|
|
35 |
|
|
36 |
struct ip_config_reply |
struct ip_config_reply1 |
37 |
{ |
{ |
|
u_int8_t flags; |
|
38 |
u_int8_t unknow1; |
u_int8_t unknow1; |
39 |
in_addr_t address; |
in_addr_t address; |
40 |
u_int8_t unknow2[8]; |
u_int8_t unknow2[8]; |
45 |
} |
} |
46 |
__attribute__ ((packed)); |
__attribute__ ((packed)); |
47 |
|
|
48 |
|
struct ip_config_reply2 |
49 |
|
{ |
50 |
|
u_int8_t unknow1[4]; |
51 |
|
in_addr_t address; |
52 |
|
u_int8_t unknow2[8]; |
53 |
|
in_addr_t dns_address; |
54 |
|
u_int8_t unknow3[5]; |
55 |
|
u_int8_t hostname_len; |
56 |
|
char hostname; |
57 |
|
} |
58 |
|
__attribute__ ((packed)); |
59 |
|
|
60 |
#define DEFAULT_IP_CONFIG_REQUEST (struct ip_config_request)\ |
#define DEFAULT_IP_CONFIG_REQUEST (struct ip_config_request)\ |
61 |
{ {0x07, 0x01, 0x01, 0x0c, 0x01, 0x01, 0x0d, 0x01, 0x01} } |
{ {0x07, 0x01, 0x01, 0x0c, 0x01, 0x01, 0x0d, 0x01, 0x01} } |
62 |
|
|
63 |
|
|
64 |
void ip_tunnel_init (buffer_t *buffer); |
void ip_tunnel_init (); |
65 |
void ip_tunnel_config (token_t token, char *data, size_t data_size, |
void ip_tunnel_config (token_t token, char *data, size_t data_size); |
|
buffer_t *out); |
|
66 |
void init_iface (buffer_t *in, buffer_t *out); |
void init_iface (buffer_t *in, buffer_t *out); |
67 |
|
|
68 |
|
|