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.
adjustment.
Adding map client_vlans which allows matching server responses with
client requests.
Reformatting Option 82 to include interface name (work in progress,
we need to figure out how to convert VLAN tags to ASCII).
Adjusting tail instead of headers because of complications with
variable length DHCP options - beware that this doesn't appear to work
with veth interfaces. Use a physical NIC for testing for now.
The variable substitution used to parse the clang version was a bashism, so
it broke on Debian/Ubuntu. So let's just use sed instead.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Seems some distributions will change the clang version output to be
something like 'Ubuntu clang version
12.0.1-++20210918042554+fed41342a82f-1~exp1~20210918143322.141'. Fix the
version parsing in configure to not barf on such weird version strings.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
The dhcp-relay utility was initially implemented as part of the
bpf-examples repository, but really belongs here. So import it along with
the build environment from bpf-examples.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>