Home
last modified time | relevance | path

Searched refs:hops (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmicrobit.c143 void board_heartbeat(uint8_t hops, uint16_t feat) in board_heartbeat() argument
174 printk("%u hops\n", hops); in board_heartbeat()
176 if (hops) { in board_heartbeat()
177 hops = MIN(hops, ARRAY_SIZE(hops_img)); in board_heartbeat()
179 &hops_img[hops - 1], 1); in board_heartbeat()
Dboard.h20 void board_heartbeat(uint8_t hops, uint16_t feat);
34 void board_heartbeat(uint8_t hops, uint16_t feat) in board_heartbeat() argument
Dmain.c43 static void heartbeat(const struct bt_mesh_hb_sub *sub, uint8_t hops, in heartbeat() argument
46 board_heartbeat(hops, feat); in heartbeat()
/Zephyr-latest/subsys/bluetooth/mesh/
Dheartbeat.c74 static void notify_recv(uint8_t hops, uint16_t feat) in notify_recv() argument
80 cb->recv(&sub, hops, feat); in notify_recv()
192 uint8_t init_ttl, hops; in bt_mesh_hb_recv() local
203 hops = (init_ttl - rx->ctx.recv_ttl + 1); in bt_mesh_hb_recv()
215 sub.min_hops = MIN(sub.min_hops, hops); in bt_mesh_hb_recv()
216 sub.max_hops = MAX(sub.max_hops, hops); in bt_mesh_hb_recv()
223 rx->ctx.recv_ttl, init_ttl, hops, (hops == 1U) ? "" : "s", feat); in bt_mesh_hb_recv()
225 notify_recv(hops, feat); in bt_mesh_hb_recv()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c215 static int add_heartbeat(uint16_t addr, uint8_t hops) in add_heartbeat() argument
225 stat->min_hops = hops; in add_heartbeat()
226 stat->max_hops = hops; in add_heartbeat()
232 if (hops < stat->min_hops) { in add_heartbeat()
233 stat->min_hops = hops; in add_heartbeat()
234 } else if (hops > stat->max_hops) { in add_heartbeat()
235 stat->max_hops = hops; in add_heartbeat()
259 void board_add_heartbeat(uint16_t addr, uint8_t hops) in board_add_heartbeat() argument
263 sort_i = add_heartbeat(addr, hops); in board_add_heartbeat()
Dboard.h20 void board_add_heartbeat(uint16_t addr, uint8_t hops);
Dmesh.c69 static void heartbeat(const struct bt_mesh_hb_sub *sub, uint8_t hops, in heartbeat() argument
455 uint8_t init_ttl, hops; in vnd_heartbeat() local
463 hops = init_ttl - ctx->recv_ttl + 1; in vnd_heartbeat()
466 hops, hops == 1U ? "" : "s"); in vnd_heartbeat()
468 board_add_heartbeat(ctx->addr, hops); in vnd_heartbeat()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dheartbeat.h94 void (*recv)(const struct bt_mesh_hb_sub *sub, uint8_t hops,
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_internal.h22 uint8_t hops; /* used by relay agents when booting via relay member
Ddhcpv4_server.c453 reply_msg->hops = 0; in dhcpv4_encode_header()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_heartbeat.c58 static void sub_hb_recv_cb(const struct bt_mesh_hb_sub *sub, uint8_t hops, uint16_t feat) in sub_hb_recv_cb() argument
67 ASSERT_EQUAL(hops, EXPECTED_HB_HOPS); in sub_hb_recv_cb()
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c147 int socket, hops = 1, feature_on = 1; in transport_udp_ipv6_open() local
168 if (zsock_setsockopt(socket, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &hops, sizeof(hops))) { in transport_udp_ipv6_open()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c2321 int hops, verify; in ZTEST() local
2341 hops = 16; in ZTEST()
2342 net_if_ipv6_set_hop_limit(lo0, hops); in ZTEST()
2344 zassert_equal(verify, hops, "Different hop limit (%d vs %d)", hops, verify); in ZTEST()
2346 hops = 8; in ZTEST()
2347 ret = zsock_setsockopt(client_sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &hops, in ZTEST()
2348 sizeof(hops)); in ZTEST()
2355 zassert_equal(verify, hops, "Different unicast hops (%d vs %d)", in ZTEST()
2356 hops, verify); in ZTEST()
2362 AF_INET6, hops, 0); in ZTEST()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c533 zassert_equal(msg->hops, 0, "Incorrect %s value", "hops"); in verify_offer()
706 zassert_equal(msg->hops, 0, "Incorrect %s value", "hops"); in verify_ack()