1
0
mirror of https://github.com/xdp-project/BNG-router.git synced 2024-05-06 15:54:53 +00:00

14 Commits

Author SHA1 Message Date
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
ac9373c82e Increasing IP and UDP length headers to match Ethernet frame tail
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).
2021-10-17 10:41:06 +02:00
37f30d5811 Update README 2021-10-15 10:17:03 +02:00
09bc68580f Moving Option 82 to end of options as per RFC3046 section 2.1.
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.
2021-10-13 20:11:06 +02:00
51381f01b1 configure: avoid bashisms
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>
2021-10-11 17:05:13 +02:00
7003079d87 configure: Support parsing weird clang versions
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>
2021-10-11 14:22:28 +02:00
a51098f255 Update README.org
Updating project description to distinguish between necessary features and features that are nice to have.
2021-10-10 16:15:39 +02:00
52a8b045b4 configure: check clang version
Check clang version and bail if it's too old.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
2021-10-04 13:46:42 +02:00
b13209498b Add vmlinux_arch.h
Fixes #6

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2021-08-25 12:16:06 +02:00
5e735a7d8e README: Add description of the BNG setup and scope
A bit rough around the edges, but it's a start...

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2021-08-18 15:21:31 +02:00
93da536a2d dhcp-relay: Fix a couple of compile and logic errors
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2021-08-18 14:47:44 +02:00
d38fb6ef73 Import build config and DHCP relay code from bpf-examples
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>
2021-08-18 14:40:32 +02:00
41020f7b61 Add README
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2021-01-16 15:06:53 +01:00
fe04dc66f6 Initial commit 2021-01-16 14:46:46 +01:00