Pass MUD URLs (RFC 8520) supplied via DHCPv4 to DHCP scripts

Extract Manufacturer Usage Description (MUD) URL from DHCP Option 161
and make it available to DHCP scripts as DNSMASQ_MUD_URL.

See https://datatracker.ietf.org/doc/html/rfc8520#section-17.3
and https://datatracker.ietf.org/doc/html/rfc8520#section-10

Co-authored-by: Jasper Wiegratz <wiegratz@uni-bremen.de>
This commit is contained in:
Kevin Yeich
2022-07-09 19:46:36 +00:00
committed by Simon Kelley
parent 508d6b4885
commit b5581ed173
3 changed files with 11 additions and 0 deletions

View File

@@ -64,6 +64,7 @@
#define OPTION_SIP_SERVER 120
#define OPTION_VENDOR_IDENT 124
#define OPTION_VENDOR_IDENT_OPT 125
#define OPTION_MUD_URL_V4 161
#define OPTION_END 255
#define SUBOPT_CIRCUIT_ID 1