From 7bd8e95d44977833d0de3fc4e893eb3bc84351d6 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Thu, 2 Apr 2015 10:50:16 +0300 Subject: sd-dhcp6: Add support for DHCPv6 DNS Recursive Name Server option Support DHCPv6 DNS server option as specified in RFC 3646. This option contains a list of IPv6 DNS server addresses. --- src/libsystemd-network/sd-dhcp6-client.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/libsystemd-network/sd-dhcp6-client.c') diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index a88a6f4b4c..627ddb63c6 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -3,7 +3,7 @@ /*** This file is part of systemd. - Copyright (C) 2014 Intel Corporation. All rights reserved. + Copyright (C) 2014-2015 Intel Corporation. All rights reserved. systemd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -753,6 +753,13 @@ static int client_parse_message(sd_dhcp6_client *client, return r; break; + + case DHCP6_OPTION_DNS_SERVERS: + r = dhcp6_lease_set_dns(lease, optval, optlen); + if (r < 0) + return r; + + break; } } -- cgit v1.2.3-54-g00ecf