Lines Matching refs:icmp_hdr
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()
92 icmp_hdr->chksum = 0U; in net_icmpv6_create()
100 struct net_icmp_hdr *icmp_hdr, in icmpv6_handle_echo_request() argument
109 ARG_UNUSED(icmp_hdr); in icmpv6_handle_echo_request()
204 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_send_error() local
208 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data( in net_icmpv6_send_error()
210 if (!icmp_hdr || icmp_hdr->type < 128) { in net_icmpv6_send_error()
334 struct net_icmp_hdr *icmp_hdr; in net_icmpv6_input() local
337 icmp_hdr = (struct net_icmp_hdr *)net_pkt_get_data(pkt, &icmp_access); in net_icmpv6_input()
338 if (!icmp_hdr) { in net_icmpv6_input()
354 net_icmpv6_type2str(icmp_hdr->type), in net_icmpv6_input()
355 icmp_hdr->type, icmp_hdr->code); in net_icmpv6_input()
359 ret = net_icmp_call_ipv6_handlers(pkt, ip_hdr, icmp_hdr); in net_icmpv6_input()