Commit cba6abc0 authored by Thomas Haller's avatar Thomas Haller

platform: fix default routing rules added by kernel in NMPRulesManager

Fixes: b8398b9e ('platform: add NMPRulesManager for syncing routing rules')
parent fbfac8f8
...@@ -558,6 +558,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self, ...@@ -558,6 +558,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self,
.priority = 0, .priority = 0,
.table = RT_TABLE_LOCAL, .table = RT_TABLE_LOCAL,
.action = FR_ACT_TO_TBL, .action = FR_ACT_TO_TBL,
.protocol = RTPROT_KERNEL,
}), }),
priority, priority,
user_tag); user_tag);
...@@ -567,6 +568,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self, ...@@ -567,6 +568,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self,
.priority = 32766, .priority = 32766,
.table = RT_TABLE_MAIN, .table = RT_TABLE_MAIN,
.action = FR_ACT_TO_TBL, .action = FR_ACT_TO_TBL,
.protocol = RTPROT_KERNEL,
}), }),
priority, priority,
user_tag); user_tag);
...@@ -576,6 +578,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self, ...@@ -576,6 +578,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self,
.priority = 32767, .priority = 32767,
.table = RT_TABLE_DEFAULT, .table = RT_TABLE_DEFAULT,
.action = FR_ACT_TO_TBL, .action = FR_ACT_TO_TBL,
.protocol = RTPROT_KERNEL,
}), }),
priority, priority,
user_tag); user_tag);
...@@ -587,6 +590,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self, ...@@ -587,6 +590,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self,
.priority = 0, .priority = 0,
.table = RT_TABLE_LOCAL, .table = RT_TABLE_LOCAL,
.action = FR_ACT_TO_TBL, .action = FR_ACT_TO_TBL,
.protocol = RTPROT_KERNEL,
}), }),
priority, priority,
user_tag); user_tag);
...@@ -596,6 +600,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self, ...@@ -596,6 +600,7 @@ nmp_rules_manager_track_default (NMPRulesManager *self,
.priority = 32766, .priority = 32766,
.table = RT_TABLE_MAIN, .table = RT_TABLE_MAIN,
.action = FR_ACT_TO_TBL, .action = FR_ACT_TO_TBL,
.protocol = RTPROT_KERNEL,
}), }),
priority, priority,
user_tag); user_tag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment