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

Toke Høiland-Jørgensen toke at toke.dk
Mon Jun 12 15:04:06 CEST 2023


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?

I.e.:

0xfc00deadbeefcafe -> 8-byte byte string
fc00:dead:beef:cafe -> IPv6 address

-Toke


More information about the Bird-users mailing list