1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

BSD: Add support for kernel route metric

Add support for kernel route metric/priority, exported as krt_metric
attribute, like in Linux. This should also fix issues with overwriting
or removing system routes.
This commit is contained in:
Ondrej Zajicek
2023-01-13 13:17:46 +01:00
parent 64a2b7aaa3
commit 7fb23041a5
3 changed files with 48 additions and 3 deletions

View File

@@ -32,9 +32,11 @@ static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_c
/* Kernel routes */
extern uint krt_max_tables;
extern const uint krt_max_metric;
struct krt_params {
int table_id; /* Kernel table ID we sync with */
u32 metric; /* Kernel metric used for all routes */
};
struct krt_state {