Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/net/ip/
Dicmpv6.c75 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_finalize() local
77 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_finalize()
78 if (!icmp_hdr) { in net_icmpv6_finalize()
82 icmp_hdr->chksum = net_calc_chksum_icmpv6(pkt); in net_icmpv6_finalize()
91 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_create() local
93 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_create()
94 if (!icmp_hdr) { in net_icmpv6_create()
98 icmp_hdr->type = icmp_type; in net_icmpv6_create()
99 icmp_hdr->code = icmp_code; in net_icmpv6_create()
100 icmp_hdr->chksum = 0U; in net_icmpv6_create()
[all …]
Dicmpv4.c37 struct net_icmp_hdr *icmp_hdr; in icmpv4_create() local
39 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmpv4_access); in icmpv4_create()
40 if (!icmp_hdr) { in icmpv4_create()
44 icmp_hdr->type = icmp_type; in icmpv4_create()
45 icmp_hdr->code = icmp_code; in icmpv4_create()
46 icmp_hdr->chksum = 0U; in 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 = net_calc_chksum_icmpv4(pkt); in net_icmpv4_finalize()
[all …]
Dicmpv4.h38 struct net_icmp_hdr *icmp_hdr);
Dipv6_mld.c301 struct net_icmp_hdr *icmp_hdr) in handle_mld_query() argument
330 ip_hdr->hop_limit != 1U || icmp_hdr->code != 0U) { in handle_mld_query()
Dicmpv6.h148 struct net_icmp_hdr *icmp_hdr);
Dipv6_nbr.c1147 struct net_icmp_hdr *icmp_hdr) in handle_ns_input() argument
1181 (net_ipv6_is_addr_mcast(&ns_hdr->tgt) && icmp_hdr->code != 0U)) { in handle_ns_input()
1715 struct net_icmp_hdr *icmp_hdr) in handle_na_input() argument
1745 (icmp_hdr->code != 0U)) { in handle_na_input()
2269 struct net_icmp_hdr *icmp_hdr) in handle_ra_input() argument
2298 icmp_hdr->code != 0U) { in handle_ra_input()
Dnet_shell.c3850 struct net_icmp_hdr *icmp_hdr);
3865 struct net_icmp_hdr *icmp_hdr) in handle_ipv6_echo_reply() argument
3985 struct net_icmp_hdr *icmp_hdr);
4000 struct net_icmp_hdr *icmp_hdr) in handle_ipv4_echo_reply() argument
/Zephyr-Core-2.7.6/tests/net/icmpv4/src/
Dmain.c119 struct net_icmp_hdr *icmp_hdr) in handle_reply_msg() argument
175 struct net_icmp_hdr icmp_hdr; in verify_echo_reply() local
189 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply()
194 if (icmp_hdr.code != 0 || icmp_hdr.type != 0) { in verify_echo_reply()
226 struct net_icmp_hdr icmp_hdr; in verify_echo_reply_with_opts() local
253 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply_with_opts()
258 if (icmp_hdr.code != 0 || icmp_hdr.type != 0) { in verify_echo_reply_with_opts()
/Zephyr-Core-2.7.6/tests/net/icmpv6/src/
Dmain.c62 struct net_icmp_hdr *icmp_hdr) in handle_test_msg() argument
/Zephyr-Core-2.7.6/subsys/net/l2/canbus/
D6locan.c1229 static void rewrite_icmp_hdr(struct net_pkt *pkt, struct net_icmp_hdr *icmp_hdr) in rewrite_icmp_hdr() argument
1235 ret = net_icmpv6_create(pkt, icmp_hdr->type, icmp_hdr->code); in rewrite_icmp_hdr()
1257 struct net_icmp_hdr *icmp_hdr; in extend_llao() local
1272 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in extend_llao()
1273 if (!icmp_hdr) { in extend_llao()
1278 switch (icmp_hdr->type) { in extend_llao()
1316 (icmp_hdr->type == NET_ICMPV6_NA && in extend_llao()
1346 rewrite_icmp_hdr(pkt, icmp_hdr); in extend_llao()
/Zephyr-Core-2.7.6/tests/net/6lo/src/
Dmain.c326 struct net_icmp_hdr *icmp_hdr = net_pkt_get_data(pkt, &icmp_access); in compare_icmp_hdr() local
329 if (!icmp_hdr) { in compare_icmp_hdr()
336 res = memcmp((uint8_t *)icmp_hdr, (uint8_t *)&data->nh.icmp, in compare_icmp_hdr()
/Zephyr-Core-2.7.6/tests/net/mld/src/
Dmain.c446 struct net_icmp_hdr *icmp_hdr) in handle_mld_query() argument