BGP filter

Jan Maria Matejka jan.matejka at nic.cz
Wed Apr 25 12:31:01 CEST 2018


>> 2.       config-file:
>>
>>               filter filter_bgp1{
>>
>>                   if format(net) = "0.0.0.0/0" then accept;  // “format(net) = …” , bird coredump ???
>>
>>                   /* if net = "0.0.0.0/0" then accept;  // “ net= …” ,  not bird coredump*/
>>
>>             }
> 
> Will check this. Thanks for report.

Checked, couldn't reproduce. My test config follows below:

--------- 8< ---- BEGIN OF CONFIG ---------------------
define x = (format(0.0.0.0/0) = "0.0.0.0/0");
filter y { if format(net) = "0.0.0.0/0" then accept; };

protocol device {}
protocol kernel { learn; ipv4; }
protocol kernel { learn; ipv6; }

ipv4 table ttt;

protocol pipe { table ttt; peer table master4; import filter y; export filter y; }
--------- 8< ---- END OF CONFIG -----------------------

This does not trigger a coredump when running on v2.0.2.

Please try this config on your machine or send in some minimal config
that causes a coredump.

Thanks!
Maria


More information about the Bird-users mailing list