summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/networkd-dhcp-common.c2
-rw-r--r--test/test-network/conf/dhcp-client-ipv4-only-ipv6-disabled.network1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c
index ea5974c32a..6465a8cfe9 100644
--- a/src/network/networkd-dhcp-common.c
+++ b/src/network/networkd-dhcp-common.c
@@ -279,7 +279,7 @@ int config_parse_dhcp_send_option(
_cleanup_(sd_dhcp_option_unrefp) sd_dhcp_option *opt = NULL, *old = NULL;
_cleanup_free_ char *word = NULL, *q = NULL;
- OrderedHashmap **options = userdata;
+ OrderedHashmap **options = data;
union in_addr_union addr;
DHCPOptionDataType type;
uint8_t u, uint8_data;
diff --git a/test/test-network/conf/dhcp-client-ipv4-only-ipv6-disabled.network b/test/test-network/conf/dhcp-client-ipv4-only-ipv6-disabled.network
index b0d0d8605e..384678cc7e 100644
--- a/test/test-network/conf/dhcp-client-ipv4-only-ipv6-disabled.network
+++ b/test/test-network/conf/dhcp-client-ipv4-only-ipv6-disabled.network
@@ -7,3 +7,4 @@ IPv6AcceptRA=false
[DHCPv4]
RoutesToDNS=yes
+SendOption=12:string:test