memcpy(&swkey->phy.tun.tun_key, tun_key,
sizeof(swkey->phy.tun.tun_key));
+ memset(swkey->phy.tun.tun_key.pad, 0,
+ sizeof(swkey->phy.tun.tun_key.pad));
attrs &= ~(1ULL << OVS_KEY_ATTR_TUN_ID);
attrs &= ~(1ULL << OVS_KEY_ATTR_IPV4_TUNNEL);
memcpy(&swkey->phy.tun.tun_key, tun_key,
sizeof(swkey->phy.tun.tun_key));
+ memset(swkey->phy.tun.tun_key.pad, 0,
+ sizeof(swkey->phy.tun.tun_key.pad));
attrs &= ~(1ULL << OVS_KEY_ATTR_IPV4_TUNNEL);
}
tun_key->ipv4_tos = iph->tos;
tun_key->ipv4_ttl = iph->ttl;
tun_key->tun_flags = tun_flags;
+ memset(tun_key->pad, 0, sizeof(tun_key->pad));
}
static inline void tnl_get_param(const struct tnl_mutable_config *mutable,