Searched refs:icmp (Results 1 – 6 of 6) sorted by relevance
27 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header() local31 icmp->type = ICMP_ECHO_REQUEST; in set_icmp_header()32 icmp->code = 0; in set_icmp_header()33 icmp->checksum = 0; in set_icmp_header()34 icmp->un.echo.id = 0; in set_icmp_header()35 icmp->un.echo.sequence = htons(ping_seq_number++); in set_icmp_header()36 icmp->checksum = compute_ip_checksum(icmp, ICMP_HDR_SIZE); in set_icmp_header()
332 struct icmp6hdr *icmp = (struct icmp6hdr *)(ip6 + 1); in validate_ra() local352 if (icmp->icmp6_code != 0) in validate_ra()375 struct icmp6hdr *icmp = (struct icmp6hdr *)(ip6 + 1); in process_ra() local376 struct ra_msg *msg = (struct ra_msg *)icmp; in process_ra()386 if (!icmp->icmp6_rt_lifetime) in process_ra()433 struct icmp6hdr *icmp = in ndisc_receive() local435 struct nd_msg *ndisc = (struct nd_msg *)icmp; in ndisc_receive()439 switch (icmp->icmp6_type) { in ndisc_receive()509 debug("Unexpected ICMPv6 type 0x%x\n", icmp->icmp6_type); in ndisc_receive()
97 struct icmp6hdr *icmp = in ping6_receive() local101 switch (icmp->icmp6_type) { in ping6_receive()113 debug("Unexpected ICMPv6 type 0x%x\n", icmp->icmp6_type); in ping6_receive()
383 struct icmp6hdr *icmp; in net_ip6_handler() local397 icmp = (struct icmp6hdr *)(((uchar *)ip6) + IP6_HDR_SIZE); in net_ip6_handler()398 csum = icmp->icmp6_cksum; in net_ip6_handler()400 icmp->icmp6_cksum = 0; in net_ip6_handler()402 csum_p = csum_partial((u8 *)icmp, hlen, 0); in net_ip6_handler()403 icmp->icmp6_cksum = csum_ipv6_magic(&ip6->saddr, &ip6->daddr, in net_ip6_handler()406 if (icmp->icmp6_cksum != csum) in net_ip6_handler()409 switch (icmp->icmp6_type) { in net_ip6_handler()
533 struct icmp_hdr *icmp; in sb_check_ping_reply() local545 icmp = (struct icmp_hdr *)&ip->udp_src; in sb_check_ping_reply()547 if (icmp->type != ICMP_ECHO_REPLY) in sb_check_ping_reply()628 struct icmp6hdr *icmp = (struct icmp6hdr *)(ip6 + 1); in dm_test_validate_ra() local648 temp = icmp->icmp6_code; in dm_test_validate_ra()649 icmp->icmp6_code = 15; in dm_test_validate_ra()651 icmp->icmp6_code = temp; in dm_test_validate_ra()663 struct ra_msg *msg = (struct ra_msg *)icmp; in dm_test_process_ra()672 temp = icmp->icmp6_rt_lifetime; in dm_test_process_ra()673 icmp->icmp6_rt_lifetime = 0; in dm_test_process_ra()[all …]
120 struct icmp_hdr *icmp; in sandbox_eth_ping_req_to_reply() local133 icmp = (struct icmp_hdr *)&ip->udp_src; in sandbox_eth_ping_req_to_reply()135 if (icmp->type != ICMP_ECHO_REQUEST) in sandbox_eth_ping_req_to_reply()
Completed in 11 milliseconds