networkd: tighten parsing of Tunnel addresses
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 2 Dec 2016 18:28:01 +0000 (13:28 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Dec 2016 18:55:14 +0000 (13:55 -0500)
commit6e47dbbcb32ad9b391296ae47e540c3506431c8f
tree7cc5ac7f6b2012e74acafc0a9c045a3ac4279549
parent40a922d055075b921cca060658b5b22608a36c58
networkd: tighten parsing of Tunnel addresses

When assigning addresses, we'd set the family, and later
verify that the address on the other end has the same family.
But when the address was specified as "any", we'd simply unset
the family. Instead, only unset the family if both addresses
are wiped.

Also, don't bother setting family = AF_UNSPEC, since it's the default (0).
src/network/netdev/tunnel.c