Searched refs:icmph (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c374 check_icmp_unreach_v4(struct icmp *icmph, probe_param_t *param) argument
379 if (icmph->icmp_type != ICMP_UNREACH)
381 if (icmph->icmp_code != ICMP_UNREACH_PORT)
385 iph = (struct ip *)((char *)icmph + ICMP_MINLEN);
405 check_icmp_echo_v4(struct icmp *icmph, probe_param_t *param) argument
410 if (icmph->icmp_type != ICMP_ECHOREPLY)
412 if (icmph->icmp_id != param->echo_id)
414 if (icmph->icmp_seq != param->echo_seq)
417 bcopy(icmph->icmp_data, &cookie, sizeof (cookie));
420 bcopy(icmph
433 struct icmp *icmph; local
767 struct icmp *icmph; local
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip.c1233 icmph_t icmph; local
1240 bzero(&icmph, sizeof (icmph_t));
1241 icmph.icmph_type = ICMP_DEST_UNREACHABLE;
1242 icmph.icmph_code = ICMP_FRAGMENTATION_NEEDED;
1243 icmph.icmph_du_mtu = htons((uint16_t)mtu);
1247 icmp_pkt(mp, &icmph, sizeof (icmph_t), ira);
1331 icmph_t *icmph; local
1367 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length];
1368 ip2dbg(("icmp_inbound_v4: type %d code %d\n", icmph->icmph_type,
1369 icmph
1672 icmp_send_reply_v4(mblk_t *mp, ipha_t *ipha, icmph_t *icmph, ip_recv_attr_t *ira) argument
1750 icmp_inbound_verify_v4(mblk_t *mp, icmph_t *icmph, ip_recv_attr_t *ira) argument
1872 icmp_inbound_too_big_v4(icmph_t *icmph, ip_recv_attr_t *ira) argument
2071 icmp_inbound_error_fanout_v4(mblk_t *mp, icmph_t *icmph, ip_recv_attr_t *ira) argument
2627 icmp_redirect_v4(mblk_t *mp, ipha_t *ipha, icmph_t *icmph, ip_recv_attr_t *ira) argument
2752 icmph_t icmph; local
2779 icmph_t *icmph; local
2978 icmph_t *icmph; local
3134 icmph_t icmph; local
3155 icmph_t icmph; local
3177 icmph_t icmph; local
[all...]
H A Dipsecah.c2137 icmph_t *icmph; local
2153 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
2155 ipha = (ipha_t *)&icmph[1];
2174 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
2175 ipha = (ipha_t *)&icmph[1];
2243 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
2244 ipha = (ipha_t *)&icmph[1];
H A Dicmp.c1145 icmph_t *icmph; local
1166 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
1167 ipha = (ipha_t *)&icmph[1]; /* Inner IP header */
1171 switch (icmph->icmph_type) {
1173 switch (icmph->icmph_code) {
H A Dspd.c2247 icmph_t *icmph; local
2305 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
2311 switch (icmph->icmph_type) {
2341 switch (icmph->icmph_code) {
H A Dip_if.c13939 icmph_t *icmph; local
13972 icmph = (icmph_t *)&ipha[1];
13973 icmph->icmph_type = ICMP_ADDRESS_MASK_REPLY;
13974 bcopy(&ipif->ipif_net_mask, &icmph[1], IP_ADDR_LEN);
13975 icmph->icmph_checksum = IP_CSUM(mp, sizeof (ipha_t), 0);
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_nat.c570 ilb_nat_icmpv4(mblk_t *mp, ipha_t *out_iph, icmph_t *icmph, ipha_t *in_iph, argument
584 icmph->icmph_checksum = 0;
585 icmph->icmph_checksum = IP_CSUM(mp, IPH_HDR_LENGTH(out_iph), 0);
H A Dilb.c1545 icmph_t *icmph, ipaddr_t *lb_dst)
1555 if ((uint8_t *)icmph + sizeof (icmph_t) > mp->b_wptr) {
1561 switch (icmph->icmph_type) {
1566 icmph->icmph_type = ICMP_ECHO_REPLY;
1567 icmph->icmph_checksum = 0;
1568 icmph->icmph_checksum = IP_CSUM(mp, IPH_HDR_LENGTH(ipha), 0);
1579 if (icmph->icmph_code != ICMP_FRAGMENTATION_NEEDED) {
1584 if (ilb_check_icmp_conn(ilbs, mp, IPPROTO_IP, ipha, icmph,
1544 ilb_icmp_v4(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ipha_t *ipha, icmph_t *icmph, ipaddr_t *lb_dst) argument
H A Dilb_conn.c890 void *icmph, in6_addr_t *lb_dst)
909 icmph4 = (icmph_t *)icmph;
936 icmph6 = (icmp6_t *)icmph;
889 ilb_check_icmp_conn(ilb_stack_t *ilbs, mblk_t *mp, int l3, void *out_iph, void *icmph, in6_addr_t *lb_dst) argument
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun.c1835 iptun_verifyicmp(conn_t *connp, void *arg2, icmph_t *icmph, icmp6_t *icmp6, argument
2267 icmph_t *icmph; local
2274 icmph = (icmph_t *)((uint8_t *)ipha + hlen);
2275 return (ICMP_IS_ERROR(icmph->icmph_type) ||
2276 icmph->icmph_type == ICMP_REDIRECT);
2387 iptun_input_icmp_v4(iptun_t *iptun, mblk_t *data_mp, icmph_t *icmph, argument
2402 data_mp->b_rptr = (uint8_t *)(icmph + 1);
2444 switch (icmph->icmph_type) {
2446 type = (inner4 != NULL ? icmph->icmph_type : ICMP6_DST_UNREACH);
2447 switch (icmph
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp.c1084 icmph_t *icmph; local
1104 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
1106 ipha = (ipha_t *)&icmph[1];
1116 switch (icmph->icmph_type) {
1118 switch (icmph->icmph_code) {
1173 sctp->sctp_client_errno = (icmph->icmph_code ==
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_input.c5491 icmph_t *icmph; local
5523 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
5530 (ipha_t *)&icmph[1] + 1 > (ipha_t *)mp->b_wptr) {
5535 ipha = (ipha_t *)&icmph[1];
5552 switch (icmph->icmph_type) {
5554 switch (icmph->icmph_code) {
5583 if (icmph->icmph_code == ICMP_HOST_UNREACHABLE)
5747 tcp_verifyicmp(conn_t *connp, void *arg2, icmph_t *icmph, icmp6_t *icmp6, argument
5765 ASSERT(icmph != NULL);
5766 if (icmph
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd_cm.c199 icmph_t *icmph; local
266 icmph = (icmph_t *)&ipha[1];
267 bzero(icmph, sizeof (icmph_t));
268 icmph->icmph_type = ICMP_DEST_UNREACHABLE;
269 icmph->icmph_code = ICMP_FRAGMENTATION_NEEDED;
270 icmph->icmph_du_mtu = htons(mtu);
271 icmph->icmph_checksum = 0;
272 icmph->icmph_checksum = IP_CSUM(pmtu_mp,
/illumos-gate/usr/src/uts/sun4u/starcat/io/
H A Ddman.c5498 icmph_t *icmph; local
5608 icmph = (icmph_t *)mp->b_cont->b_wptr;
5611 icmph->icmph_type = ICMP_ECHO_REQUEST;
5612 icmph->icmph_code = 0;
5615 icmph->icmph_type = ICMP6_ECHO_REQUEST;
5616 icmph->icmph_code = 0;
5626 icmph->icmph_checksum = IP_CSUM(mp->b_cont, iph_hdr_len, 0);
5631 icmph->icmph_checksum = IP_CSUM(mp->b_cont, iph_hdr_len - 32,
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c892 icmph_t *icmph; local
916 icmph = (icmph_t *)&mp->b_rptr[iph_hdr_length];
917 ipha = (ipha_t *)&icmph[1]; /* Inner IP header */
923 switch (icmph->icmph_type) {
925 switch (icmph->icmph_code) {

Completed in 3210 milliseconds