/Zephyr-Core-3.5.0/subsys/net/ip/ |
D | icmpv6.c | 64 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() 73 icmp_hdr->chksum = net_calc_chksum_icmpv6(pkt); in net_icmpv6_finalize() 83 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_create() local 85 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_create() 86 if (!icmp_hdr) { in net_icmpv6_create() 90 icmp_hdr->type = icmp_type; in net_icmpv6_create() 91 icmp_hdr->code = icmp_code; in net_icmpv6_create() [all …]
|
D | icmpv4.c | 36 struct net_icmp_hdr *icmp_hdr; in net_icmpv4_create() local 38 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmpv4_access); in net_icmpv4_create() 39 if (!icmp_hdr) { in net_icmpv4_create() 43 icmp_hdr->type = icmp_type; in net_icmpv4_create() 44 icmp_hdr->code = icmp_code; in net_icmpv4_create() 45 icmp_hdr->chksum = 0U; in net_icmpv4_create() 54 struct net_icmp_hdr *icmp_hdr; in net_icmpv4_finalize() local 62 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmpv4_access); in net_icmpv4_finalize() 63 if (!icmp_hdr) { in net_icmpv4_finalize() 67 icmp_hdr->chksum = 0U; in net_icmpv4_finalize() [all …]
|
D | icmp.c | 469 struct net_icmp_hdr *icmp_hdr) in icmp_call_handlers() argument 477 if (ctx->type == icmp_hdr->type && in icmp_call_handlers() 478 (ctx->code == icmp_hdr->code || ctx->code == 0U)) { in icmp_call_handlers() 486 ret = ctx->handler(ctx, pkt, ip_hdr, icmp_hdr, ctx->user_data); in icmp_call_handlers() 502 struct net_icmp_hdr *icmp_hdr) in net_icmp_call_ipv4_handlers() argument 509 return icmp_call_handlers(pkt, &ip_hdr, icmp_hdr); in net_icmp_call_ipv4_handlers() 514 struct net_icmp_hdr *icmp_hdr) in net_icmp_call_ipv6_handlers() argument 521 return icmp_call_handlers(pkt, &ip_hdr, icmp_hdr); in net_icmp_call_ipv6_handlers()
|
D | net_private.h | 64 struct net_icmp_hdr *icmp_hdr); 67 struct net_icmp_hdr *icmp_hdr);
|
D | ipv6_mld.c | 315 struct net_icmp_hdr *icmp_hdr, in handle_mld_query() argument 346 ip_hdr->hop_limit != 1U || icmp_hdr->code != 0U) { in handle_mld_query()
|
D | ipv6_nbr.c | 1138 struct net_icmp_hdr *icmp_hdr, in handle_ns_input() argument 1179 icmp_hdr->code != 0U)) { in handle_ns_input() 1721 struct net_icmp_hdr *icmp_hdr, in handle_na_input() argument 1757 (icmp_hdr->code != 0U)) { in handle_na_input() 2393 struct net_icmp_hdr *icmp_hdr, in handle_ra_input() argument 2430 icmp_hdr->code != 0U) { in handle_ra_input()
|
D | net_shell.c | 4335 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument 4397 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument 4403 ARG_UNUSED(icmp_hdr); in handle_ipv6_echo_reply() 4415 struct net_icmp_hdr *icmp_hdr, in handle_ipv4_echo_reply() argument 4471 struct net_icmp_hdr *icmp_hdr, in handle_ipv4_echo_reply() argument 4477 ARG_UNUSED(icmp_hdr); in handle_ipv4_echo_reply()
|
/Zephyr-Core-3.5.0/tests/net/icmpv4/src/ |
D | main.c | 122 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-Core-3.5.0/tests/net/icmp/src/ |
D | main.c | 183 struct net_icmp_hdr *icmp_hdr; in get_ipv4_reply() local 217 icmp_hdr = net_pkt_cursor_get_pos(reply); in get_ipv4_reply() 218 *hdr_icmp = icmp_hdr; in get_ipv4_reply() 260 struct net_icmp_hdr *icmp_hdr; in get_ipv6_reply() local 288 icmp_hdr = net_pkt_cursor_get_pos(reply); in get_ipv6_reply() 289 *hdr_icmp = icmp_hdr; in get_ipv6_reply() 329 struct net_icmp_hdr *icmp_hdr = NULL; in offload_ping_handler() local 352 &ipv4_hdr, &icmp_hdr); in offload_ping_handler() 364 &ipv6_hdr, &icmp_hdr); in offload_ping_handler() 374 ret = resp_handler(ctx, reply, &ip_hdr, icmp_hdr, user_data); in offload_ping_handler() [all …]
|
/Zephyr-Core-3.5.0/tests/net/icmpv6/src/ |
D | main.c | 128 struct net_icmp_hdr *icmp_hdr, in handle_test_msg() argument 133 ARG_UNUSED(icmp_hdr); in handle_test_msg()
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | icmp.h | 52 struct net_icmp_hdr *icmp_hdr,
|
/Zephyr-Core-3.5.0/tests/net/mld/src/ |
D | main.c | 435 struct net_icmp_hdr *icmp_hdr, in handle_mld_query() argument 441 ARG_UNUSED(icmp_hdr); in handle_mld_query()
|
/Zephyr-Core-3.5.0/tests/net/6lo/src/ |
D | main.c | 332 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-Core-3.5.0/subsys/net/lib/zperf/ |
D | zperf_shell.c | 542 struct net_icmp_hdr *icmp_hdr, in ping_handler() argument 550 ARG_UNUSED(icmp_hdr); in ping_handler()
|
/Zephyr-Core-3.5.0/tests/net/ipv6_fragment/src/ |
D | main.c | 2223 struct net_icmp_hdr *icmp_hdr, in handle_ipv6_echo_reply() argument 2235 ARG_UNUSED(icmp_hdr); in handle_ipv6_echo_reply()
|