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:
Thomas Haller 2014-12-16 23:35:31 +01:00
parent fe95185f6f
commit b169f222bf

View file

@ -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);