]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/link_gre.c
Merge branch 'iproute2-master' into iproute2-next
[mirror_iproute2.git] / ip / link_gre.c
index ede761b23a8c1e5c0c21c4620f7de2dcaa7bc1fd..1ee7ee13ab6cdcc90132efff8c353e22266faaac 100644 (file)
@@ -395,9 +395,9 @@ get_failed:
        addattr32(n, 1024, IFLA_GRE_OKEY, okey);
        addattr_l(n, 1024, IFLA_GRE_IFLAGS, &iflags, 2);
        addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2);
-       if (is_addrtype_inet(&saddr))
+       if (is_addrtype_inet_not_unspec(&saddr))
                addattr_l(n, 1024, IFLA_GRE_LOCAL, saddr.data, saddr.bytelen);
-       if (is_addrtype_inet(&daddr))
+       if (is_addrtype_inet_not_unspec(&daddr))
                addattr_l(n, 1024, IFLA_GRE_REMOTE, daddr.data, daddr.bytelen);
        addattr_l(n, 1024, IFLA_GRE_PMTUDISC, &pmtudisc, 1);
        if (ignore_df)