From 73d67a4355a28ea746358329901aa8da1d02ca2b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 7 Dec 2010 10:41:05 -0800 Subject: [PATCH] netdev-vport: Properly initialize tnl_port_config structure to 0. Otherwise the configuration starts out indeterminate and tends to be rejected by the kernel. Bug #4195. --- lib/netdev-vport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index f0de376a4..f101b938c 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -438,6 +438,7 @@ parse_tunnel_config(const struct netdev_dev *dev, const struct shash *args, bool ipsec_ip_set = false; bool ipsec_mech_set = false; + memset(&config, 0, sizeof config); config.flags |= TNL_F_PMTUD; config.flags |= TNL_F_HDR_CACHE; -- 2.43.0