summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdhcpagent/common/dhcp_stable.c
diff options
context:
space:
mode:
authorDavid Höppner <0xffea@gmail.com>2014-02-15 17:27:42 +0000
committerDan McDonald <danmcd@omniti.com>2014-03-10 13:57:15 -0400
commit35b6f0471a5d938b98734483be3c5a258e319010 (patch)
treee0427861ad31fd6caf4bc2ff9bd7a387244f2fde /usr/src/lib/libdhcpagent/common/dhcp_stable.c
parentf430eb3a41177f2eb1360599331628b0ad9acb51 (diff)
downloadillumos-gate-35b6f0471a5d938b98734483be3c5a258e319010.tar.gz
4586 dhcpv6 client id malformed
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/lib/libdhcpagent/common/dhcp_stable.c')
-rw-r--r--usr/src/lib/libdhcpagent/common/dhcp_stable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/lib/libdhcpagent/common/dhcp_stable.c b/usr/src/lib/libdhcpagent/common/dhcp_stable.c
index 3f4c41e868..2f6adfbbcc 100644
--- a/usr/src/lib/libdhcpagent/common/dhcp_stable.c
+++ b/usr/src/lib/libdhcpagent/common/dhcp_stable.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This module reads and writes the stable identifier values, DUID and IAID.
*/
@@ -143,6 +141,7 @@ make_stable_duid(const char *physintf, size_t *duidlen)
*/
if (dlpi_open(physintf, &dh, 0) == DLPI_SUCCESS &&
+ dlpi_bind(dh, DLPI_ANY_SAP, NULL) == DLPI_SUCCESS &&
dlpi_info(dh, &dlinfo, 0) == DLPI_SUCCESS &&
(len = dlinfo.di_physaddrlen) > 0 &&
(arptype = dlpi_arptype(dlinfo.di_mactype) != 0)) {