From: Maria Matejka Date: Wed, 26 Feb 2025 13:45:24 +0000 (+0100) Subject: Filters: don't rewrite gw explicitly set by filters X-Git-Tag: v3.0.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd1f5952d19b90bcda1e07de45e3a6d055936658;p=thirdparty%2Fbird.git Filters: don't rewrite gw explicitly set by filters If the originating protocol sets hostentry, it should be overridden by filters and not rewrite gw. This fixes #156. Issue #154 may need a similar fix. Thanks to Peter Hutchinson for reporting. Signed-Off-By: Katerina Kubecova --- diff --git a/filter/f-inst.c b/filter/f-inst.c index b8ba0a801..00d39c39b 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -855,6 +855,9 @@ a->originated = 1; a->fresh = 1; + + if (a->id == ea_gen_nexthop.id) + ea_unset_attr(&fs->rte->attrs, 1, &ea_gen_hostentry); } }