mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 08:50:07 +01:00
platform/tests: for route tests, add test routes with a different metric
If we have NM running, adding a route with metric 20 might conflict and cause NM to remove the route. Choose a different (higher) metric that is less likely to cause a conflict.
This commit is contained in:
parent
fe95185f6f
commit
b169f222bf
1 changed files with 4 additions and 2 deletions
|
|
@ -61,7 +61,8 @@ test_ip4_route (void)
|
|||
in_addr_t network;
|
||||
int plen = 24;
|
||||
in_addr_t gateway;
|
||||
int metric = 20;
|
||||
/* Choose a high metric so that we hopefully don't conflict. */
|
||||
int metric = 22986;
|
||||
int mss = 1000;
|
||||
|
||||
inet_pton (AF_INET, "192.0.3.0", &network);
|
||||
|
|
@ -156,7 +157,8 @@ test_ip6_route (void)
|
|||
struct in6_addr network;
|
||||
int plen = 64;
|
||||
struct in6_addr gateway;
|
||||
int metric = 20;
|
||||
/* Choose a high metric so that we hopefully don't conflict. */
|
||||
int metric = 22987;
|
||||
int mss = 1000;
|
||||
|
||||
inet_pton (AF_INET6, "2001:db8:a:b:0:0:0:0", &network);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue