1
0
mirror of https://github.com/xdp-project/BNG-router.git synced 2024-05-06 15:54:53 +00:00
Files
xdp-project-bng-router/dhcp-relay/dhcp_kern_xdp.c
Yoel Caspersen a9003fa266 Reformatting option 82 circuit ID to include interface name (including
VLAN tags) in ASCII format.

Because VLAN tags are converted to ASCII with use of modulo,
interface name is generated from right to left, starting with inner
VLAN and prepended with dash characters to ensure a final length of
IF_NAMESIZE bytes (16), e.g.:

----ens6f0.83.20

We avoid null bytes in circuit ID to ensure compatibility with DHCP
servers that interpret null as string terminator.
2021-10-18 09:20:16 +02:00

12 KiB