{
termreq_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = TERMREQ;
tmp.vpn_ip = myself->vpn_ip;
{
termreq_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = PINGTIMEOUT;
tmp.vpn_ip = myself->vpn_ip;
{
del_host_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = DEL_HOST;
tmp.vpn_ip = new_host->vpn_ip;
{
add_host_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = ADD_HOST;
tmp.real_ip = new_host->real_ip;
tmp.vpn_ip = new_host->vpn_ip;
{
key_changed_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = KEY_CHANGED;
tmp.from = src->vpn_ip;
{
basic_info_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = BASIC_INFO;
tmp.protocol = PROT_CURRENT;
{
passphrase_t tmp;
cp
+ memset(&tmp, 0, sizeof(tmp));
tmp.type = PASSPHRASE;
encrypt_passphrase(&tmp);
public_key_t *tmp;
cp
tmp = (public_key_t*)xmalloc(strlen(my_public_key_base36)+sizeof(*tmp));
+ memset(tmp, 0, sizeof(*tmp));
tmp->type = PUBLIC_KEY;
tmp->len = strlen(my_public_key_base36);
strcpy(&tmp->key, my_public_key_base36);
calculate_t *tmp;
cp
tmp = xmalloc(strlen(k)+sizeof(*tmp));
+ memset(tmp, 0, sizeof(*tmp));
tmp->type = CALCULATE;
tmp->len = strlen(k);
strcpy(&tmp->key, k);
conn_list_t *fw;
cp
tmp = xmalloc(sizeof(*tmp));
+ memset(tmp, 0, sizeof(*tmp));
tmp->type = REQ_KEY;
tmp->to = to;
tmp->from = myself->vpn_ip;
conn_list_t *fw;
cp
tmp = xmalloc(sizeof(*tmp)+strlen(my_public_key_base36));
+ memset(tmp, 0, sizeof(*tmp));
tmp->type = ANS_KEY;
tmp->to = to;
tmp->from = myself->vpn_ip;
typedef struct add_host_t {
unsigned char type;
+ char unused1;
ip_t real_ip;
ip_t vpn_ip;
ip_t vpn_mask;
typedef struct termreq_t {
unsigned char type;
+ char unused1;
ip_t vpn_ip;
} termreq_t;
typedef struct calculate_t {
unsigned char type;
+ char unused1;
unsigned short len;
char key;
} calculate_t;
typedef struct public_key_t {
unsigned char type;
+ char unused1;
unsigned short len;
char key;
} public_key_t;
typedef struct key_req_t {
unsigned char type;
+ char unused1;
ip_t from;
ip_t to;
time_t expiry;
typedef struct key_changed_t {
unsigned char type;
+ char unused1;
ip_t from;
} key_changed_t;
typedef struct del_host_t {
unsigned char type;
+ char unused1;
ip_t vpn_ip;
} del_host_t;