summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Wood <david.wood@cambridgeconsultants.com>2020-02-28 18:28:49 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-19 09:08:40 +0100
commit7354900dddb869b4eda9ab2b511763dbb30f94bc (patch)
tree88542f1d9520a2163d555443e640bd132486f75c /test
parentd69b62de4439a103fe3c8fbb9dbd25e1758d48b3 (diff)
downloadsystemd-7354900dddb869b4eda9ab2b511763dbb30f94bc.tar.gz
network: Fix split in `SendOption=` on client and server
When specifying `DHCPv4.SendOption=`, it is used by systemd-networkd to set the value of that option within the DHCP request that is sent out. This differs to setting `DHCPServer.SendOption=`, which will place all the options together as suboptions into the vendor-specific information (code 43) option. This commit adds two new config options, `DHCPv4.SendVendorOption=` and `DHCPServer.SendVendorOption=`. These both have the behaviour of the old `DHCPServer.SendOption=` flag, and set the value of the suboption in the vendor-specific information option. The behaviour of `DHCPServer.SendOption=` is then changed to reflect that of `DHCPv4.SendOption=`. It will set the value of the corresponding option in the DHCP request.
Diffstat (limited to 'test')
-rw-r--r--test/fuzz/fuzz-network-parser/directives.network2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-network-parser/directives.network b/test/fuzz/fuzz-network-parser/directives.network
index b3465ceb8c..4418fc0149 100644
--- a/test/fuzz/fuzz-network-parser/directives.network
+++ b/test/fuzz/fuzz-network-parser/directives.network
@@ -100,6 +100,7 @@ SendRelease=
MaxAttempts=
IPServiceType=
SendOption=
+SendVendorOption=
SendDecline=
RouteMTUBytes=
[DHCPv6]
@@ -273,6 +274,7 @@ DefaultLeaseTimeSec=
EmitTimezone=
DNS=
SendOption=
+SendVendorOption=
[NextHop]
Id=
Gateway=