Alter the way extended communities are matched when part of the value
authorclaudio <claudio@openbsd.org>
Mon, 30 Jan 2023 16:51:34 +0000 (16:51 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 30 Jan 2023 16:51:34 +0000 (16:51 +0000)
commitb2402ebb883a47f43803ca92f4436daec6817b86
treecd2d1bfaf5f8dc15dbc87bd991d0bded5c254b00
parent61230bc727b89ebdd7816f24b4e5329ec556bc20
Alter the way extended communities are matched when part of the value
is auto-expanded or masked off.
Try to match against both 2- and 4-byte AS encoding and on insertion
check if expansion is actually possible and deny communities where both
community values are > USHRT_MAX.
OK tb@
usr.sbin/bgpd/parse.y
usr.sbin/bgpd/rde_community.c