Searched refs:SIZE_OF_MAGIC_COOKIE (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_internal.h | 41 #define SIZE_OF_MAGIC_COOKIE 4 macro 84 SIZE_OF_MAGIC_COOKIE + \
|
D | dhcpv4_server.c | 295 if (buf == NULL || *buflen < SIZE_OF_MAGIC_COOKIE) { in dhcpv4_encode_magic_cookie() 299 memcpy(buf, magic_cookie, SIZE_OF_MAGIC_COOKIE); in dhcpv4_encode_magic_cookie() 301 *buflen -= SIZE_OF_MAGIC_COOKIE; in dhcpv4_encode_magic_cookie() 303 return buf + SIZE_OF_MAGIC_COOKIE; in dhcpv4_encode_magic_cookie() 1448 if (datalen < (SIZE_OF_SNAME + SIZE_OF_FILE + SIZE_OF_MAGIC_COOKIE)) { in dhcpv4_process_data() 1452 data += SIZE_OF_SNAME + SIZE_OF_FILE + SIZE_OF_MAGIC_COOKIE; in dhcpv4_process_data() 1453 datalen -= SIZE_OF_SNAME + SIZE_OF_FILE + SIZE_OF_MAGIC_COOKIE; in dhcpv4_process_data()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 188 net_pkt_write(pkt, cookie, SIZE_OF_MAGIC_COOKIE); in client_prepare_test_msg() 490 uint8_t cookie_buf[SIZE_OF_MAGIC_COOKIE]; in verify_offer() 559 ret = net_pkt_read(pkt, cookie_buf, SIZE_OF_MAGIC_COOKIE); in verify_offer() 561 zassert_mem_equal(cookie_buf, cookie, SIZE_OF_MAGIC_COOKIE, in verify_offer() 664 uint8_t cookie_buf[SIZE_OF_MAGIC_COOKIE]; in verify_ack() 742 ret = net_pkt_read(pkt, cookie_buf, SIZE_OF_MAGIC_COOKIE); in verify_ack() 744 zassert_mem_equal(cookie_buf, cookie, SIZE_OF_MAGIC_COOKIE, in verify_ack()
|