diff options
author | marjohn56 <martin@queens-park.com> | 2016-12-21 15:26:17 +0000 |
---|---|---|
committer | marjohn56 <martin@queens-park.com> | 2016-12-21 15:26:17 +0000 |
commit | 7be23d53705ccbcee64d3236bf74b34c513da686 (patch) | |
tree | fd0af042ad225b942c1ca42972d7b3e689b42e72 /src/etc/inc/interfaces.inc | |
parent | d6df09d0f2da7ed36dc9c68816ddc914f46d6522 (diff) | |
download | pfsense-7be23d53705ccbcee64d3236bf74b34c513da686.zip pfsense-7be23d53705ccbcee64d3236bf74b34c513da686.tar.gz |
User Defined DUID
User may define a DUID to use in System->Advanced->Networking. The
entered DUID is validated for composition and length, if valid it is
stored in the config.xml. On call of wan_dhcp6_configure() the DUID is
written to file to be read by dhcp6c on launch.
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index be68bdd..eaac41c 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3868,6 +3868,13 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) { $wanif = get_real_interface($interface, "inet6"); $dhcp6cconf = ""; + if (!empty($config['system']['global-v6duid'])) { + // Write the DUID file + if(!write_dhcp6_duid($config['system']['global-v6duid'])) { + log_error(gettext("Failed to write user DUID file!")); + } + } + if ($wancfg['adv_dhcp6_config_file_override']) { // DHCP6 Config File Override $dhcp6cconf = DHCP6_Config_File_Override($wancfg, $wanif); |