Home
last modified time | relevance | path

Searched refs:icmp_hdr (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dicmpv6.c64 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_finalize() local
66 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_finalize()
67 if (!icmp_hdr) { in net_icmpv6_finalize()
71 icmp_hdr->chksum = 0U; in net_icmpv6_finalize()
74 icmp_hdr->chksum = net_calc_chksum_icmpv6(pkt); in net_icmpv6_finalize()
85 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_create() local
87 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_create()
88 if (!icmp_hdr) { in net_icmpv6_create()
92 icmp_hdr->type = icmp_type; in net_icmpv6_create()
93 icmp_hdr->code = icmp_code; in net_icmpv6_create()
[all …]
Dicmpv4.c37 struct net_icmp_hdr *icmp_hdr; in net_icmpv4_create() local
39 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmpv4_access); in net_icmpv4_create()
40 if (!icmp_hdr) { in net_icmpv4_create()
44 icmp_hdr->type = icmp_type; in net_icmpv4_create()
45 icmp_hdr->code = icmp_code; in net_icmpv4_create()
46 icmp_hdr->chksum = 0U; in net_icmpv4_create()
55 struct net_icmp_hdr *icmp_hdr; in net_icmpv4_finalize() local
63 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmpv4_access); in net_icmpv4_finalize()
64 if (!icmp_hdr) { in net_icmpv4_finalize()
68 icmp_hdr->chksum = 0U; in net_icmpv4_finalize()
[all …]
Dicmp.c506 struct net_icmp_hdr *icmp_hdr) in icmp_call_handlers() argument
514 if (ctx->type == icmp_hdr->type && in icmp_call_handlers()
515 (ctx->code == icmp_hdr->code || ctx->code == 0U)) { in icmp_call_handlers()
523 ret = ctx->handler(ctx, pkt, ip_hdr, icmp_hdr, ctx->user_data); in icmp_call_handlers()
539 struct net_icmp_hdr *icmp_hdr) in net_icmp_call_ipv4_handlers() argument
546 return icmp_call_handlers(pkt, &ip_hdr, icmp_hdr); in net_icmp_call_ipv4_handlers()
551 struct net_icmp_hdr *icmp_hdr) in net_icmp_call_ipv6_handlers() argument
558 return icmp_call_handlers(pkt, &ip_hdr, icmp_hdr); in net_icmp_call_ipv6_handlers()
Dnet_private.h70 struct net_icmp_hdr *icmp_hdr);
73 struct net_icmp_hdr *icmp_hdr);
Dipv6_mld.c402 struct net_icmp_hdr *icmp_hdr, in handle_mld_query() argument
440 ip_hdr->hop_limit != 1U || icmp_hdr->code != 0U) { in handle_mld_query()
Dipv6_nbr.c1199 struct net_icmp_hdr *icmp_hdr, in handle_ns_input() argument
1239 icmp_hdr->code != 0U)) { in handle_ns_input()
1821 struct net_icmp_hdr *icmp_hdr, in handle_na_input() argument
1857 (icmp_hdr->code != 0U)) { in handle_na_input()
2520 struct net_icmp_hdr *icmp_hdr, in handle_ra_input() argument
2557 icmp_hdr->code != 0U) { in handle_ra_input()
2756 struct net_icmp_hdr *icmp_hdr, in handle_ptb_input() argument
/Zephyr-latest/tests/net/icmpv4/src/
Dmain.c122 struct net_icmp_hdr *icmp_hdr, in handle_reply_msg() argument
127 ARG_UNUSED(icmp_hdr); in handle_reply_msg()
177 struct net_icmp_hdr icmp_hdr; in verify_echo_reply() local
191 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply()
196 if (icmp_hdr.code != 0 || icmp_hdr.type != 0) { in verify_echo_reply()
228 struct net_icmp_hdr icmp_hdr; in verify_echo_reply_with_opts() local
255 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply_with_opts()
260 if (icmp_hdr.code != 0 || icmp_hdr.type != 0) { in verify_echo_reply_with_opts()
/Zephyr-latest/tests/net/icmp/src/
Dmain.c183 struct net_icmp_hdr *icmp_hdr; in get_ipv4_reply() local
219 icmp_hdr = net_pkt_cursor_get_pos(reply); in get_ipv4_reply()
220 *hdr_icmp = icmp_hdr; in get_ipv4_reply()
262 struct net_icmp_hdr *icmp_hdr; in get_ipv6_reply() local
290 icmp_hdr = net_pkt_cursor_get_pos(reply); in get_ipv6_reply()
291 *hdr_icmp = icmp_hdr; in get_ipv6_reply()
331 struct net_icmp_hdr *icmp_hdr = NULL; in offload_ping_handler() local
354 &ipv4_hdr, &icmp_hdr); in offload_ping_handler()
366 &ipv6_hdr, &icmp_hdr); in offload_ping_handler()
376 ret = resp_handler(ctx, reply, &ip_hdr, icmp_hdr, user_data); in offload_ping_handler()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dping.c51 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument
113 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument
119 ARG_UNUSED(icmp_hdr); in handle_ipv6_echo_reply()
131 struct net_icmp_hdr *icmp_hdr, in handle_ipv4_echo_reply() argument
187 struct net_icmp_hdr *icmp_hdr, in handle_ipv4_echo_reply() argument
193 ARG_UNUSED(icmp_hdr); in handle_ipv4_echo_reply()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c159 struct net_icmp_hdr *icmp_hdr; in get_icmp_chksum() local
173 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in get_icmp_chksum()
174 if (!icmp_hdr) { in get_icmp_chksum()
180 return icmp_hdr->chksum; in get_icmp_chksum()
253 struct net_icmp_hdr *icmp_hdr; in test_receiving() local
255 icmp_hdr = (struct net_icmp_hdr *) in test_receiving()
257 zassert_not_null(icmp_hdr, "Can't access ICMP header"); in test_receiving()
260 icmp_hdr->chksum++; in test_receiving()
816 struct net_icmp_hdr *icmp_hdr, in dummy_icmp_handler() argument
822 ARG_UNUSED(icmp_hdr); in dummy_icmp_handler()
[all …]
/Zephyr-latest/tests/net/icmpv6/src/
Dmain.c128 struct net_icmp_hdr *icmp_hdr, in handle_test_msg() argument
133 ARG_UNUSED(icmp_hdr); in handle_test_msg()
/Zephyr-latest/include/zephyr/net/
Dicmp.h55 struct net_icmp_hdr *icmp_hdr,
/Zephyr-latest/tests/boards/espressif/ethernet/src/
Dmain.c59 struct net_icmp_hdr *icmp_hdr, void *user_data) in icmp_event() argument
/Zephyr-latest/tests/boards/espressif/wifi/src/
Dmain.c120 struct net_icmp_hdr *icmp_hdr, void *user_data) in icmp_event() argument
/Zephyr-latest/tests/net/6lo/src/
Dmain.c332 struct net_icmp_hdr *icmp_hdr = net_pkt_get_data(pkt, &icmp_access); in compare_icmp_hdr() local
335 if (!icmp_hdr) { in compare_icmp_hdr()
342 res = memcmp((uint8_t *)icmp_hdr, (uint8_t *)&data->nh.icmp, in compare_icmp_hdr()
/Zephyr-latest/tests/net/mld/src/
Dmain.c535 struct net_icmp_hdr *icmp_hdr, in handle_mld_query() argument
541 ARG_UNUSED(icmp_hdr); in handle_mld_query()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_shell.c658 struct net_icmp_hdr *icmp_hdr, in ping_handler() argument
666 ARG_UNUSED(icmp_hdr); in ping_handler()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c2222 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument
2234 ARG_UNUSED(icmp_hdr); in handle_ipv6_echo_reply()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c800 struct net_icmp_hdr *icmp_hdr, in echo_reply_handler() argument
811 ARG_UNUSED(icmp_hdr); in echo_reply_handler()