/titanic_44/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 374 check_icmp_unreach_v4(struct icmp *icmph, probe_param_t *param) in check_icmp_unreach_v4() argument 379 if (icmph->icmp_type != ICMP_UNREACH) in check_icmp_unreach_v4() 381 if (icmph->icmp_code != ICMP_UNREACH_PORT) in check_icmp_unreach_v4() 385 iph = (struct ip *)((char *)icmph + ICMP_MINLEN); in check_icmp_unreach_v4() 405 check_icmp_echo_v4(struct icmp *icmph, probe_param_t *param) in check_icmp_echo_v4() argument 410 if (icmph->icmp_type != ICMP_ECHOREPLY) in check_icmp_echo_v4() 412 if (icmph->icmp_id != param->echo_id) in check_icmp_echo_v4() 414 if (icmph->icmp_seq != param->echo_seq) in check_icmp_echo_v4() 417 bcopy(icmph->icmp_data, &cookie, sizeof (cookie)); in check_icmp_echo_v4() 420 bcopy(icmph->icmp_data + sizeof (cookie), &port, sizeof (port)); in check_icmp_echo_v4() [all …]
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip.c | 1233 icmph_t icmph; in icmp_frag_needed() local 1240 bzero(&icmph, sizeof (icmph_t)); in icmp_frag_needed() 1241 icmph.icmph_type = ICMP_DEST_UNREACHABLE; in icmp_frag_needed() 1242 icmph.icmph_code = ICMP_FRAGMENTATION_NEEDED; in icmp_frag_needed() 1243 icmph.icmph_du_mtu = htons((uint16_t)mtu); in icmp_frag_needed() 1247 icmp_pkt(mp, &icmph, sizeof (icmph_t), ira); in icmp_frag_needed() 1331 icmph_t *icmph; in icmp_inbound_v4() local 1367 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length]; in icmp_inbound_v4() 1368 ip2dbg(("icmp_inbound_v4: type %d code %d\n", icmph->icmph_type, in icmp_inbound_v4() 1369 icmph->icmph_code)); in icmp_inbound_v4() [all …]
|
H A D | ipsecah.c | 2137 icmph_t *icmph; in ah_icmp_error_v4() local 2153 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in ah_icmp_error_v4() 2155 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4() 2174 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in ah_icmp_error_v4() 2175 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4() 2243 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in ah_icmp_error_v4() 2244 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4()
|
H A D | icmp.c | 1145 icmph_t *icmph; in icmp_icmp_input() local 1166 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in icmp_icmp_input() 1167 ipha = (ipha_t *)&icmph[1]; /* Inner IP header */ in icmp_icmp_input() 1171 switch (icmph->icmph_type) { in icmp_icmp_input() 1173 switch (icmph->icmph_code) { in icmp_icmp_input()
|
H A D | spd.c | 2247 icmph_t *icmph; in ipsec_inbound_accept_clear() local 2305 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in ipsec_inbound_accept_clear() 2311 switch (icmph->icmph_type) { in ipsec_inbound_accept_clear() 2341 switch (icmph->icmph_code) { in ipsec_inbound_accept_clear()
|
H A D | ip_if.c | 13932 icmph_t *icmph; in ipif_mask_reply() local 13965 icmph = (icmph_t *)&ipha[1]; in ipif_mask_reply() 13966 icmph->icmph_type = ICMP_ADDRESS_MASK_REPLY; in ipif_mask_reply() 13967 bcopy(&ipif->ipif_net_mask, &icmph[1], IP_ADDR_LEN); in ipif_mask_reply() 13968 icmph->icmph_checksum = IP_CSUM(mp, sizeof (ipha_t), 0); in ipif_mask_reply()
|
/titanic_44/usr/src/uts/common/inet/ilb/ |
H A D | ilb_nat.c | 570 ilb_nat_icmpv4(mblk_t *mp, ipha_t *out_iph, icmph_t *icmph, ipha_t *in_iph, in ilb_nat_icmpv4() argument 584 icmph->icmph_checksum = 0; in ilb_nat_icmpv4() 585 icmph->icmph_checksum = IP_CSUM(mp, IPH_HDR_LENGTH(out_iph), 0); in ilb_nat_icmpv4()
|
H A D | ilb.c | 1545 icmph_t *icmph, ipaddr_t *lb_dst) in ilb_icmp_v4() argument 1555 if ((uint8_t *)icmph + sizeof (icmph_t) > mp->b_wptr) { in ilb_icmp_v4() 1561 switch (icmph->icmph_type) { in ilb_icmp_v4() 1566 icmph->icmph_type = ICMP_ECHO_REPLY; in ilb_icmp_v4() 1567 icmph->icmph_checksum = 0; in ilb_icmp_v4() 1568 icmph->icmph_checksum = IP_CSUM(mp, IPH_HDR_LENGTH(ipha), 0); in ilb_icmp_v4() 1579 if (icmph->icmph_code != ICMP_FRAGMENTATION_NEEDED) { in ilb_icmp_v4() 1584 if (ilb_check_icmp_conn(ilbs, mp, IPPROTO_IP, ipha, icmph, in ilb_icmp_v4()
|
H A D | ilb_conn.c | 890 void *icmph, in6_addr_t *lb_dst) in ilb_check_icmp_conn() argument 909 icmph4 = (icmph_t *)icmph; in ilb_check_icmp_conn() 936 icmph6 = (icmp6_t *)icmph; in ilb_check_icmp_conn()
|
/titanic_44/usr/src/uts/common/inet/iptun/ |
H A D | iptun.c | 1833 iptun_verifyicmp(conn_t *connp, void *arg2, icmph_t *icmph, icmp6_t *icmp6, in iptun_verifyicmp() argument 2265 icmph_t *icmph; in is_icmp_error() local 2272 icmph = (icmph_t *)((uint8_t *)ipha + hlen); in is_icmp_error() 2273 return (ICMP_IS_ERROR(icmph->icmph_type) || in is_icmp_error() 2274 icmph->icmph_type == ICMP_REDIRECT); in is_icmp_error() 2385 iptun_input_icmp_v4(iptun_t *iptun, mblk_t *data_mp, icmph_t *icmph, in iptun_input_icmp_v4() argument 2400 data_mp->b_rptr = (uint8_t *)(icmph + 1); in iptun_input_icmp_v4() 2442 switch (icmph->icmph_type) { in iptun_input_icmp_v4() 2444 type = (inner4 != NULL ? icmph->icmph_type : ICMP6_DST_UNREACH); in iptun_input_icmp_v4() 2445 switch (icmph->icmph_code) { in iptun_input_icmp_v4() [all …]
|
/titanic_44/usr/src/uts/common/inet/sctp/ |
H A D | sctp.c | 1084 icmph_t *icmph; in sctp_icmp_error() local 1104 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in sctp_icmp_error() 1106 ipha = (ipha_t *)&icmph[1]; in sctp_icmp_error() 1116 switch (icmph->icmph_type) { in sctp_icmp_error() 1118 switch (icmph->icmph_code) { in sctp_icmp_error() 1173 sctp->sctp_client_errno = (icmph->icmph_code == in sctp_icmp_error()
|
/titanic_44/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd_cm.c | 199 icmph_t *icmph; in ibd_async_rc_process_too_big() local 266 icmph = (icmph_t *)&ipha[1]; in ibd_async_rc_process_too_big() 267 bzero(icmph, sizeof (icmph_t)); in ibd_async_rc_process_too_big() 268 icmph->icmph_type = ICMP_DEST_UNREACHABLE; in ibd_async_rc_process_too_big() 269 icmph->icmph_code = ICMP_FRAGMENTATION_NEEDED; in ibd_async_rc_process_too_big() 270 icmph->icmph_du_mtu = htons(mtu); in ibd_async_rc_process_too_big() 271 icmph->icmph_checksum = 0; in ibd_async_rc_process_too_big() 272 icmph->icmph_checksum = IP_CSUM(pmtu_mp, in ibd_async_rc_process_too_big()
|
/titanic_44/usr/src/uts/common/inet/tcp/ |
H A D | tcp_input.c | 5520 icmph_t *icmph; in tcp_icmp_input() local 5552 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in tcp_icmp_input() 5559 (ipha_t *)&icmph[1] + 1 > (ipha_t *)mp->b_wptr) { in tcp_icmp_input() 5564 ipha = (ipha_t *)&icmph[1]; in tcp_icmp_input() 5581 switch (icmph->icmph_type) { in tcp_icmp_input() 5583 switch (icmph->icmph_code) { in tcp_icmp_input() 5612 if (icmph->icmph_code == ICMP_HOST_UNREACHABLE) in tcp_icmp_input() 5776 tcp_verifyicmp(conn_t *connp, void *arg2, icmph_t *icmph, icmp6_t *icmp6, in tcp_verifyicmp() argument 5794 ASSERT(icmph != NULL); in tcp_verifyicmp() 5795 if (icmph->icmph_type == ICMP_DEST_UNREACHABLE && in tcp_verifyicmp() [all …]
|
/titanic_44/usr/src/uts/sun4u/starcat/io/ |
H A D | dman.c | 5498 icmph_t *icmph; in man_pinger() local 5608 icmph = (icmph_t *)mp->b_cont->b_wptr; in man_pinger() 5611 icmph->icmph_type = ICMP_ECHO_REQUEST; in man_pinger() 5612 icmph->icmph_code = 0; in man_pinger() 5615 icmph->icmph_type = ICMP6_ECHO_REQUEST; in man_pinger() 5616 icmph->icmph_code = 0; in man_pinger() 5626 icmph->icmph_checksum = IP_CSUM(mp->b_cont, iph_hdr_len, 0); in man_pinger() 5631 icmph->icmph_checksum = IP_CSUM(mp->b_cont, iph_hdr_len - 32, in man_pinger()
|
/titanic_44/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 892 icmph_t *icmph; in udp_icmp_input() local 916 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length]; in udp_icmp_input() 917 ipha = (ipha_t *)&icmph[1]; /* Inner IP header */ in udp_icmp_input() 923 switch (icmph->icmph_type) { in udp_icmp_input() 925 switch (icmph->icmph_code) { in udp_icmp_input()
|