[PATCH] adding custom options in radv protocol, strict ipv6 regex

Alexander Zubkov green at qrator.net
Mon Jun 12 15:32:31 CEST 2023


On Mon, Jun 12, 2023 at 3:17 PM Ondrej Zajicek <santiago at crfreenet.org>
wrote:

> On Mon, Jun 12, 2023 at 01:08:15PM +0200, Alexander Zubkov via Bird-users
> wrote:
> > Hi,
> >
> > The main concern is that a 6-byte bytestring conflicts with the MAC
> address
> > representation. Bird does not have the type for it currently, but who
> > knows, it might need it in the future. So we might need some new syntax
> for
> > bytestring in that case. Or it can be postponed to later time. In this
> case
> > introduction of MAC-address lexems would break configs that use 6-byte
> > bytestrings (if we want to care much about those).
>
> Hi
>
> I already added MAC-address lexem and shortened minimum bytestring length
> to 9 bytes in EVPN branch (to represent 10-byte ESI) :
>
>
> https://gitlab.nic.cz/labs/bird/-/commit/cf0661c9762090231c9f2d973968a7ce9f98407e
>
>
I was afraid to shorten non-colon variant, becuase somebody using the
variable name "feedfacecafebeef01" might get hurt. :)


> So i would keep it at that limit and used e.g. hex:XX:YY:... syntax
> for shorter ones.
>

But Maria has a good point, that it may be beneficial to be able to input
the blob with spaces or even line breaks, which requires some sort of
"brackets".


>
> --
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20230612/b2bcec39/attachment.htm>


More information about the Bird-users mailing list