Print this page
4586 dhcpv6 client id malformed
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Marcel Telka <marcel@telka.sk>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdhcputil/common/dhcp_inittab.c
          +++ new/usr/src/lib/libdhcputil/common/dhcp_inittab.c
↓ open down ↓ 499 lines elided ↑ open up ↑
 500  500                                  } else {
 501  501                                          goto failed;
 502  502                                  }
 503  503                                  if (++dig == 2) {
 504  504                                          *outbuf++ = val;
 505  505                                          maclen++;
 506  506                                          dig = val = 0;
 507  507                                  }
 508  508                          }
 509  509                  } else {
 510      -                        if (dlpi_info(dh, &dlinfo, 0) != DLPI_SUCCESS) {
      510 +                        if (dlpi_bind(dh, DLPI_ANY_SAP, NULL) !=
      511 +                            DLPI_SUCCESS || dlpi_info(dh, &dlinfo, 0) !=
      512 +                            DLPI_SUCCESS) {
 511  513                                  dlpi_close(dh);
 512  514                                  goto failed;
 513  515                          }
 514  516                          maclen = dlinfo.di_physaddrlen;
 515  517                          (void) memcpy(outbuf, dlinfo.di_physaddr, maclen);
 516  518                          dlpi_close(dh);
 517  519                          if (hwtype == -1)
 518  520                                  hwtype = dlpi_arptype(dlinfo.di_mactype);
 519  521                  }
 520  522          }
↓ open down ↓ 1280 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX