From 39c028e9e9e3acf840051f4271fadd4939fde2af Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 24 Jan 2012 11:31:00 +0100 Subject: Assign default protocol preference via proto_config_new(). The patch from Alexander V. Chernikov. --- sysdep/unix/krt.Y | 2 -- 1 file changed, 2 deletions(-) (limited to 'sysdep/unix/krt.Y') diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y index 86081966..18e1e52d 100644 --- a/sysdep/unix/krt.Y +++ b/sysdep/unix/krt.Y @@ -31,7 +31,6 @@ kern_proto_start: proto_start KERNEL { cf_error("Kernel protocol already defined"); #endif cf_krt = this_proto = proto_config_new(&proto_unix_kernel, sizeof(struct krt_config), $1); - this_proto->preference = DEF_PREF_INHERITED; THIS_KRT->scan_time = 60; THIS_KRT->learn = THIS_KRT->persist = 0; krt_scan_construct(THIS_KRT); @@ -67,7 +66,6 @@ kif_proto_start: proto_start DEVICE { if (cf_kif) cf_error("Kernel device protocol already defined"); cf_kif = this_proto = proto_config_new(&proto_unix_iface, sizeof(struct kif_config), $1); - this_proto->preference = DEF_PREF_DIRECT; THIS_KIF->scan_time = 60; init_list(&THIS_KIF->primary); krt_if_construct(THIS_KIF); -- cgit v1.2.3