summaryrefslogtreecommitdiff
path: root/src/network/test-routing-policy-rule.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-08-02 04:22:44 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-08-16 22:01:17 +0900
commitec863cdc200f35ce0fc76d07f984ca476fcd8ad3 (patch)
tree47654560ae58f45f531ca8a20851005fbc197542 /src/network/test-routing-policy-rule.c
parent43e08c78c7eb1c1f0c0a4c96ba53a19ebb345f10 (diff)
downloadsystemd-ec863cdc200f35ce0fc76d07f984ca476fcd8ad3.tar.gz
network: add missing entry in serialization/deserialization
Diffstat (limited to 'src/network/test-routing-policy-rule.c')
-rw-r--r--src/network/test-routing-policy-rule.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/network/test-routing-policy-rule.c b/src/network/test-routing-policy-rule.c
index 0319b6db09..d441099b5a 100644
--- a/src/network/test-routing-policy-rule.c
+++ b/src/network/test-routing-policy-rule.c
@@ -62,31 +62,31 @@ int main(int argc, char **argv) {
test_setup_logging(LOG_DEBUG);
test_rule_serialization("basic parsing",
- "RULE=from=1.2.3.4/32 to=2.3.4.5/32 family=AF_INET tos=5 fwmark=1/2 table=10", NULL);
+ "RULE=from=1.2.3.4/32 to=2.3.4.5/32 family=AF_INET tos=5 priority=0 fwmark=1/2 table=10", NULL);
test_rule_serialization("ignored values",
"RULE=something=to=ignore from=1.2.3.4/32 from=1.2.3.4/32"
" \t to=2.3.4.5/24 to=2.3.4.5/32 tos=5 fwmark=2 fwmark=1 table=10 table=20",
"RULE=from=1.2.3.4/32"
- " to=2.3.4.5/32 family=AF_INET tos=5 fwmark=1/0 table=20");
+ " to=2.3.4.5/32 family=AF_INET tos=5 priority=0 fwmark=1/0 table=20");
test_rule_serialization("ipv6",
- "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 table=6", NULL);
+ "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 priority=0 table=6", NULL);
- assert_se(asprintf(&p, "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 table=%d", RT_TABLE_MAIN) >= 0);
+ assert_se(asprintf(&p, "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 priority=0 table=%d", RT_TABLE_MAIN) >= 0);
test_rule_serialization("default table",
"RULE=from=1::2/64 to=2::3/64", p);
test_rule_serialization("incoming interface",
"RULE=from=1::2/64 to=2::3/64 table=1 iif=lo",
- "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 iif=lo table=1");
+ "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 priority=0 iif=lo table=1");
test_rule_serialization("outgoing interface",
- "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 oif=eth0 table=1", NULL);
+ "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 priority=0 oif=eth0 table=1", NULL);
test_rule_serialization("freeing interface names",
"RULE=from=1::2/64 to=2::3/64 family=AF_INET6 iif=e0 iif=e1 oif=e0 oif=e1 table=1",
- "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 iif=e1 oif=e1 table=1");
+ "RULE=from=1::2/64 to=2::3/64 family=AF_INET6 priority=0 iif=e1 oif=e1 table=1");
return 0;
}