From: Ben Pfaff Date: Tue, 7 Dec 2010 18:41:05 +0000 (-0800) Subject: netdev-vport: Properly initialize tnl_port_config structure to 0. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d67a4355a28ea746358329901aa8da1d02ca2b;p=openvswitch 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. --- diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index f0de376a..f101b938 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;