Home
last modified time | relevance | path

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

/Zephyr-latest/tests/net/dhcpv6/src/
Dmain.c105 struct net_dhcpv6_duid_storage *serverid = &test_serverid; in generate_fake_server_duid() local
107 (struct dhcpv6_duid_ll *)&serverid->duid.buf; in generate_fake_server_duid()
110 memset(serverid, 0, sizeof(*serverid)); in generate_fake_server_duid()
112 UNALIGNED_PUT(htons(DHCPV6_DUID_TYPE_LL), &serverid->duid.type); in generate_fake_server_duid()
116 serverid->length = DHCPV6_DUID_LL_HEADER_SIZE + sizeof(fake_mac); in generate_fake_server_duid()
121 memcpy(&iface->config.dhcpv6.serverid, &test_serverid, in set_fake_server_duid()
293 zassert_equal(duid.length, iface->config.dhcpv6.serverid.length, in verify_dhcpv6_serverid()
295 zassert_mem_equal(&duid.duid, &iface->config.dhcpv6.serverid.duid, in verify_dhcpv6_serverid()
729 zassert_equal(test_ctx.iface->config.dhcpv6.serverid.length, in ZTEST()
731 zassert_mem_equal(&test_ctx.iface->config.dhcpv6.serverid.duid, in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c31 bool serverid : 1; member
246 struct net_dhcpv6_duid_storage *serverid) in dhcpv6_add_option_serverid() argument
251 serverid->length); in dhcpv6_add_option_serverid()
256 ret = net_pkt_write(pkt, &serverid->duid, serverid->length); in dhcpv6_add_option_serverid()
440 if (options->serverid) { in dhcpv6_calculate_message_size()
500 if (options->serverid) { in dhcpv6_add_options()
502 pkt, &iface->config.dhcpv6.serverid); in dhcpv6_add_options()
650 .serverid = true, in dhcpv6_send_request()
676 .serverid = true, in dhcpv6_send_renew()
774 struct net_dhcpv6_duid_storage *serverid) in dhcpv6_parse_option_serverid() argument
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_if.h382 struct net_dhcpv6_duid_storage serverid; member