diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-09-11 21:09:47 +0000 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-02-27 21:28:44 +0100 |
commit | e14052f9640f0e0b7eb2edf0148591d0eb214fb7 (patch) | |
tree | 02e93ca61135089f5a011d70f28896e949899e24 /sysdep/unix | |
parent | 7c36eb3e8bd7d06f65dc7319d42b6abe782c5b89 (diff) |
WIP ignore interfaceold/ignore-interface
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/krt.Y | 2 | ||||
-rw-r--r-- | sysdep/unix/krt.c | 2 | ||||
-rw-r--r-- | sysdep/unix/krt.h | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y index 95b54d65..d651dd45 100644 --- a/sysdep/unix/krt.Y +++ b/sysdep/unix/krt.Y @@ -119,7 +119,7 @@ kif_iface_opt_list: ; kif_iface: - kif_iface_start iface_patt_list_nopx kif_iface_opt_list; + kif_iface_start iface_patt_list kif_iface_opt_list; dynamic_attr: KRT_SOURCE { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_SOURCE); } ; diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index ded5dfe4..da37b345 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -89,7 +89,7 @@ static struct kif_config *kif_cf; static timer *kif_scan_timer; static btime kif_last_shot; -static struct kif_iface_config kif_default_iface = {}; +static struct kif_iface_config kif_default_iface = {.flags = KIF_IGNORE}; struct kif_iface_config * kif_get_iface_config(struct iface *iface) diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index 6ace2a86..18ef09d4 100644 --- a/sysdep/unix/krt.h +++ b/sysdep/unix/krt.h @@ -103,12 +103,15 @@ struct kif_config { btime scan_time; /* How often we re-scan interfaces */ }; +#define KIF_IGNORE 1 + struct kif_iface_config { struct iface_patt i; ip_addr pref_v4; ip_addr pref_v6; ip_addr pref_ll; + unsigned flags; }; struct kif_proto { |