diff options
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 { |