Lines Matching refs:duid
240 ret = net_pkt_write(pkt, &clientid->duid, clientid->length); in dhcpv6_add_option_clientid()
256 ret = net_pkt_write(pkt, &serverid->duid, serverid->length); in dhcpv6_add_option_serverid()
754 struct net_dhcpv6_duid_raw duid; in dhcpv6_parse_option_clientid() local
762 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_clientid()
768 memcpy(&clientid->duid, &duid, length); in dhcpv6_parse_option_clientid()
776 struct net_dhcpv6_duid_raw duid; in dhcpv6_parse_option_serverid() local
784 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_serverid()
790 memcpy(&serverid->duid, &duid, length); in dhcpv6_parse_option_serverid()
1450 struct net_dhcpv6_duid_storage duid = { 0 }; in dhcpv6_handle_advertise() local
1462 ret = dhcpv6_find_clientid(pkt, &duid); in dhcpv6_handle_advertise()
1468 if (iface->config.dhcpv6.clientid.length != duid.length || in dhcpv6_handle_advertise()
1469 memcmp(&iface->config.dhcpv6.clientid.duid, &duid.duid, in dhcpv6_handle_advertise()
1476 memset(&duid, 0, sizeof(duid)); in dhcpv6_handle_advertise()
1477 ret = dhcpv6_find_serverid(pkt, &duid); in dhcpv6_handle_advertise()
1545 memcpy(&iface->config.dhcpv6.serverid, &duid, in dhcpv6_handle_advertise()
1567 struct net_dhcpv6_duid_storage duid = { 0 }; in dhcpv6_handle_reply() local
1583 ret = dhcpv6_find_clientid(pkt, &duid); in dhcpv6_handle_reply()
1589 if (iface->config.dhcpv6.clientid.length != duid.length || in dhcpv6_handle_reply()
1590 memcmp(&iface->config.dhcpv6.clientid.duid, &duid.duid, in dhcpv6_handle_reply()
1597 memset(&duid, 0, sizeof(duid)); in dhcpv6_handle_reply()
1598 ret = dhcpv6_find_serverid(pkt, &duid); in dhcpv6_handle_reply()
2113 (struct dhcpv6_duid_ll *)&clientid->duid.buf; in dhcpv6_generate_client_duid()
2117 UNALIGNED_PUT(htons(DHCPV6_DUID_TYPE_LL), &clientid->duid.type); in dhcpv6_generate_client_duid()