diff options
author | Daniel Wagner <wagi@monom.org> | 2022-12-18 20:28:19 +0100 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2023-01-02 09:15:43 +0100 |
commit | 74e97eda84c4c4fefbd00dceb767495dd062d290 (patch) | |
tree | 210b6d86efc543300470cbc58ee998b05e246059 | |
parent | 82ce08135a14ef4ab5b5b60f1e426a26b9fc72fc (diff) | |
download | connman-74e97eda84c4c4fefbd00dceb767495dd062d290.tar.gz |
ipconfig: Do not filter out 0.0.0.0 gateway routes
This reverts commit cb05780d86c3 ("ipconfig: Don't add invalid gateway
routes") as it introduced regressions for IPv4LL setups.
0.0.0.0 is a valid gateway address for IPv4LL setups (see forwarding
rules in RFC3927).
Reported by Geoffrey Van Landeghem <geoffrey.vl@gmail.com>
-rw-r--r-- | src/ipconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 9f17f498..34b1724a 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1172,7 +1172,7 @@ int __connman_ipconfig_gateway_add(struct connman_ipconfig *ipconfig) DBG(""); - if (!ipconfig->address || !ipconfig->address->gateway) + if (!ipconfig->address) return -EINVAL; service = __connman_service_lookup_from_index(ipconfig->index); |