[PATCH] Don't clamp extended community values to 0..0xffff for EC_GENERICs.

Ondrej Zajicek santiago at crfreenet.org
Mon Jun 19 12:54:18 CEST 2017


On Sat, Jun 17, 2017 at 04:16:07PM +0300, Lennert Buytenhek wrote:
> filter/config.Y:f_new_ec_item() currently clamps the value part to
> 0..0xffff whenever key >= 0x10000, which makes sense if key and value
> together need to fit into 48 bits, but this is not the case for
> generic extended communities, and performing the clamping for generic
> extended communities is incorrect.

Thanks, merged. Note that the issue affects only generic ECs in EC sets,
singular generic ECs are handled correctly.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170619/08040ee5/attachment.asc>


More information about the Bird-users mailing list