Home
last modified time | relevance | path

Searched refs:duid (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/tests/net/dhcpv6/src/
Dmain.c107 (struct dhcpv6_duid_ll *)&serverid->duid.buf; in generate_fake_server_duid()
112 UNALIGNED_PUT(htons(DHCPV6_DUID_TYPE_LL), &serverid->duid.type); in generate_fake_server_duid()
275 struct net_dhcpv6_duid_storage duid; in verify_dhcpv6_clientid() local
278 ret = dhcpv6_find_clientid(pkt, &duid); in verify_dhcpv6_clientid()
280 zassert_equal(duid.length, iface->config.dhcpv6.clientid.length, in verify_dhcpv6_clientid()
282 zassert_mem_equal(&duid.duid, &iface->config.dhcpv6.clientid.duid, in verify_dhcpv6_clientid()
283 duid.length, "Invalid Client ID value"); in verify_dhcpv6_clientid()
288 struct net_dhcpv6_duid_storage duid; in verify_dhcpv6_serverid() local
291 ret = dhcpv6_find_serverid(pkt, &duid); in verify_dhcpv6_serverid()
293 zassert_equal(duid.length, iface->config.dhcpv6.serverid.length, in verify_dhcpv6_serverid()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/dhcpv6/
Ddhcpv6.c238 ret = net_pkt_write(pkt, &clientid->duid, clientid->length); in dhcpv6_add_option_clientid()
254 ret = net_pkt_write(pkt, &serverid->duid, serverid->length); in dhcpv6_add_option_serverid()
752 struct net_dhcpv6_duid_raw duid; in dhcpv6_parse_option_clientid() local
760 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_clientid()
766 memcpy(&clientid->duid, &duid, length); in dhcpv6_parse_option_clientid()
774 struct net_dhcpv6_duid_raw duid; in dhcpv6_parse_option_serverid() local
782 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_serverid()
788 memcpy(&serverid->duid, &duid, length); in dhcpv6_parse_option_serverid()
1441 struct net_dhcpv6_duid_storage duid = { 0 }; in dhcpv6_handle_advertise() local
1453 ret = dhcpv6_find_clientid(pkt, &duid); in dhcpv6_handle_advertise()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/net/
Ddhcpv6.h54 struct net_dhcpv6_duid_raw duid; member