diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-13 13:17:46 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-13 13:17:46 +0100 |
commit | 7fb23041a52d01754c53ba963e2282e524813364 (patch) | |
tree | 30325f71d00074c9322443c21ff4144d8f85785d /sysdep/bsd/krt-sys.h | |
parent | 64a2b7aaa303be0b407508747bfc96c1c656f1e2 (diff) |
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.
Diffstat (limited to 'sysdep/bsd/krt-sys.h')
-rw-r--r-- | sysdep/bsd/krt-sys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/bsd/krt-sys.h b/sysdep/bsd/krt-sys.h index 57501884..198373c0 100644 --- a/sysdep/bsd/krt-sys.h +++ b/sysdep/bsd/krt-sys.h @@ -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 { |