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

Alexander Zubkov green at qrator.net
Mon Jun 12 15:13:39 CEST 2023


On Mon, Jun 12, 2023 at 3:04 PM Toke Høiland-Jørgensen <toke at toke.dk> wrote:

> Alexander Zubkov via Bird-users <bird-users at network.cz> writes:
>
> > Hello, Maria!
> >
> > You suggestion for blob syntax seems good to me. I think I can try to
> > prepare patches for that. Only one concern is that it could break some
> > current configuration files, if they have functions with such names.
> Maybe
> > it is better to use some other "brackets" to make it less possible to hit
> > something? hex<deadbeef> or hex[deadbeef] maybe? Or even something exotic
> > like hex|deadbeef| ?
>
> How about just using the standard 0x prefix?
>

It is already taken for integers. :)


>
> I.e.:
>
> 0xfc00deadbeefcafe -> 8-byte byte string
> fc00:dead:beef:cafe -> IPv6 address
>
> -Toke
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20230612/a6a8a9f4/attachment.htm>


More information about the Bird-users mailing list