]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/if-options.c
options: introduce the uri option as opposed to a string
authorRoy Marples <roy@marples.name>
Wed, 4 Oct 2023 12:03:21 +0000 (13:03 +0100)
committerRoy Marples <roy@marples.name>
Wed, 4 Oct 2023 12:08:20 +0000 (13:08 +0100)
commit500cd81362136f33f64e4a47496e7443ecbc2e7d
treed8fd18970d64f9c57a635e21b90faf29ac700e29
parent0b9d88252904e053cc6f4187a57e062d576a932b
options: introduce the uri option as opposed to a string

Currently we don't attempt to validate a uri given, aside from
not allowing any space characters within.

If the option is `array uri` then the first two bytes are the
length of the uri in network order and the rest is a uri element.
The uri's are space separated for the variable because space is not
allowed within the uri.

This allows us to implement RFC 8572, Secure Zero Touch Provisioning.
src/dhcp-common.c
src/dhcp-common.h
src/dhcpcd-definitions.conf
src/dhcpcd.conf.5.in
src/if-options.c