/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_tx.c | 187 struct icmp icmp, *ic = &icmp; local 228 !strcasecmp(*cpp, "icmp")) { 240 tx_proto = "icmp";
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_log.c | 270 struct icmp *icmp; local 272 icmp = (struct icmp *)fin->fin_dp; 279 switch (icmp->icmp_type) 286 hlen += MIN(sizeof(struct icmp) + 8, 290 hlen += MIN(sizeof(struct icmp), 297 struct icmp6_hdr *icmp; local 299 icmp = (struct icmp6_hdr *)fin->fin_dp; 306 if (icmp [all...] |
H A D | ip_state.c | 193 /* fill icmp reply type table */ 201 /* fill icmp reply type table */ 242 MUTEX_INIT(&ifs->ifs_ips_icmptq.ifq_lock, "ipftq icmp tab"); 1119 struct icmp *ic; 2371 struct icmp *ic; 2373 icmphdr_t *icmp; local 2495 icmp = (icmphdr_t *)((char *)oip + (IP_HL(oip) << 2)); 2501 hv += icmp->icmp_id; 2519 * i : the index of this packet (the icmp 2522 * in the icmp heade [all...] |
H A D | ip_fil_solaris.c | 1277 struct icmp *icmp; local 1339 sz += offsetof(struct icmp, icmp_ip); 1348 icmp = (struct icmp *)(m->b_rptr + hlen); 1349 icmp->icmp_type = type & 0xff; 1350 icmp->icmp_code = code & 0xff; 1354 icmp->icmp_nextmtu = net_getmtu(ifs->ifs_ipf_ipv4, phy,0 ); 1380 sz -= offsetof(struct icmp, icmp_ip); 1381 bcopy((char *)mb->b_rptr, (char *)&icmp 2482 struct icmp *icmp; local 2906 icmphdr_t *icmp; local [all...] |
H A D | ip_nat.c | 263 MUTEX_INIT(&ifs->ifs_nat_icmptq.ifq_lock, "nat icmp ipftq tab"); 2589 * process making the icmp request. (the receiver justs 2933 * ip packet. By definition the icmp error 2997 icmphdr_t *icmp, *orgicmp; local 3017 icmp = fin->fin_dp; 3018 oip = (ip_t *)&icmp->icmp_ip; 3125 * Adjust data checksum and icmp checksum to 3152 * Adjust data checksum and icmp checksum to 3204 * overall icmp->icmp_cksum 3213 } /* nat_dir can't be NAT_INBOUND for icmp querie 3874 icmphdr_t *icmp = NULL; local 4053 icmphdr_t *icmp; local 4201 icmphdr_t *icmp; local 4381 icmphdr_t *icmp; local 4528 icmphdr_t *icmp; local [all...] |
H A D | fil.c | 943 int minicmpsz = sizeof(struct icmp); 944 icmphdr_t *icmp; local 959 * This is a right place to set icmp pointer, since the memory 961 * rely on fact icmp variable always points to ICMP header. 963 icmp = fin->fin_dp; 964 fin->fin_data[0] = *(u_short *)icmp; 965 fin->fin_data[1] = icmp->icmp_id; 967 switch (icmp->icmp_type) 996 if (icmp->icmp_code == ICMP_UNREACH_NEEDFRAG) { 997 if (icmp [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_icmp.c | 65 interpret_icmp(int flags, struct icmp *icmp, int iplen, int ilen) argument 83 switch (icmp->icmp_type) { 87 ntohs(icmp->icmp_id), ntohs(icmp->icmp_seq)); 92 switch (icmp->icmp_code) { 97 &icmp->icmp_ip.ip_dst)); 107 &icmp->icmp_ip.ip_dst)); 116 icmp->icmp_ip.ip_p); 124 orig_uhdr = (struct udphdr *)((uchar_t *)icmp [all...] |
/illumos-gate/usr/src/uts/common/netinet/ |
H A D | ip_icmp.h | 55 * Structure of an icmp header. 57 struct icmp { struct
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | ndp.c | 99 struct icmp6_hdr *icmp; local 143 icmp = (struct icmp6_hdr *)in_packet; 168 switch (icmp->icmp6_type) { 191 if (icmp->icmp6_code != 0) { 193 icmp->icmp6_code, msgbuf, pi->pi_name); 203 rs = (struct nd_router_solicit *)icmp; 251 if (icmp->icmp6_code != 0) { 253 icmp->icmp6_code, msgbuf, pi->pi_name); 263 ra = (struct nd_router_advert *)icmp;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | rdisc.c | 77 struct icmp icmp; member in union:ad_u 125 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 1230 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 1232 if (p->icmp.icmp_code == ICMP_ROUTERADVERT_NOCOMMON) 1234 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { 1240 if (p->icmp.icmp_code != ICMP_ROUTERADVERT_COMMON) { 1242 type, p->icmp.icmp_code, naddr_ntoa(from), naddr_ntoa(to)); 1334 switch (p->icmp.icmp_type) {
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipf_y.y | 490 ip: srcdst flags icmp 1152 icmp: | itype icode label 1585 { "icmp", IPFY_ICMP }, 1586 { "icmp-type", IPFY_ICMPTYPE }, 1609 { "no-icmp-err", IPFY_NOICMPERR }, 1625 { "return-icmp", IPFY_RETICMP }, 1626 { "return-icmp-as-dest", IPFY_RETICMPASDST },
|
H A D | ipmon.c | 864 (void) sprintf(t, "%s PR icmp %d", 983 struct icmp *ic; 984 struct icmp *icmp; local 1159 ic = (struct icmp *)((char *)ip + hl); 1166 ic = (struct icmp *)((char *)ip + hl); 1169 (void) sprintf(t, "%s PR icmp len %hu %hu icmp %s", 1205 icmp = (icmphdr_t *)((char *)ipc + hl); 1212 " %s PR icmp le [all...] |
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ipclassifier.c | 2084 icmp_t *icmp = (icmp_t *)&itc[1]; local 2087 bzero(icmp, sizeof (icmp_t)); 2091 connp->conn_icmp = icmp; 2094 icmp->icmp_connp = connp; 2111 icmp_t *icmp = (icmp_t *)&itc[1]; local 2114 ASSERT(icmp->icmp_connp == connp); 2115 ASSERT(connp->conn_icmp == icmp);
|
H A D | tnet.c | 768 const struct icmp *icmp = (const struct icmp *) local 771 if ((uchar_t *)icmp + ICMP_MINLEN > mp->b_wptr) 773 if (icmp->icmp_type == ICMP_ROUTERADVERT || 774 icmp->icmp_type == ICMP_ROUTERSOLICIT)
|
H A D | icmp.c | 94 * it is possible to I_PUSH "icmp", but that results in pushing a passthrough 99 static void icmp_bind_proto(icmp_t *icmp); 168 5707, "icmp", 1, INFPSZ, 512, 128 173 * We have separate open functions for the /dev/icmp and /dev/icmp6 devices. 192 /* For AF_INET aka /dev/icmp */ 205 IP_MAXPACKET, /* TSDU_size. icmp allows maximum size messages. */ 206 T_INVALID, /* ETSDU_size. icmp does not support expedited data. */ 207 T_INVALID, /* CDATA_size. icmp does not support connect data. */ 208 T_INVALID, /* DDATA_size. icmp does not support disconnect data. */ 211 IP_MAXPACKET, /* TIDU_size. icmp allow 316 icmp_t *icmp; local 424 icmp_t *icmp = connp->conn_icmp; local 593 icmp_bind_proto(icmp_t *icmp) argument 719 icmp_t *icmp; local 1007 icmp_t *icmp = connp->conn_icmp; local 1033 icmp_t *icmp = connp->conn_icmp; local 1144 icmp_t *icmp = connp->conn_icmp; local 1280 icmp_t *icmp = connp->conn_icmp; local 1447 icmp_t *icmp = Q_TO_ICMP(q); local 1503 icmp_copy_info(struct T_info_ack *tap, icmp_t *icmp) argument 1518 icmp_do_capability_ack(icmp_t *icmp, struct T_capability_ack *tcap, t_uscalar_t cap_bits1) argument 1538 icmp_t *icmp = Q_TO_ICMP(q); local 1564 icmp_t *icmp = Q_TO_ICMP(q); local 1667 icmp_t *icmp; local 1812 icmp_t *icmp = Q_TO_ICMP(q); local 1859 icmp_t *icmp = connp->conn_icmp; local 1976 icmp_t *icmp = connp->conn_icmp; local 2174 icmp_t *icmp = connp->conn_icmp; local 2482 icmp_queue_fallback(icmp_t *icmp, mblk_t *mp) argument 2515 icmp_t *icmp = connp->conn_icmp; local 2565 icmp_t *icmp; local 2938 icmp_t *icmp = connp->conn_icmp; local 3015 icmp_t *icmp = connp->conn_icmp; local 3335 icmp_t *icmp = connp->conn_icmp; local 3653 icmp_t *icmp = connp->conn_icmp; local 3814 icmp_t *icmp = connp->conn_icmp; local 3981 icmp_t *icmp = connp->conn_icmp; local 4126 icmp_t *icmp = connp->conn_icmp; local 4378 icmp_t *icmp = connp->conn_icmp; local 4717 icmp_t *icmp = connp->conn_icmp; local 4873 icmp_t *icmp = connp->conn_icmp; local 5186 icmp_t *icmp = connp->conn_icmp; local 5253 icmp_t *icmp; local 5416 icmp_t *icmp = connp->conn_icmp; local 5563 icmp_t *icmp = connp->conn_icmp; local 5630 icmp_t *icmp = connp->conn_icmp; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 88 char icmp[STR_LEN]; /* "icmp" or "ipv6-icmp" */ member in struct:pr_set 127 static int rcvsock4; /* receive (icmp) socket file descriptor */ 128 static int sndsock4; /* send (udp/icmp) socket file descriptor */ 165 boolean_t useicmp = _B_FALSE; /* use icmp echo instead of udp packets */ 1175 (void) strcpy(pr->icmp, "icmp"); 1191 (void) strcpy(pr->icmp, "ipv6-icmp"); [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 699 icmp_t icmp; local 708 if (mdb_vread(&icmp, sizeof (icmp_t), 715 connp->conn_icmp = &icmp; 716 icmp.icmp_connp = connp; 723 if (icmp.icmp_state == TS_UNBND) 725 else if (icmp.icmp_state == TS_IDLE) 727 else if (icmp.icmp_state == TS_DATA_XFER) 1140 (strcmp("icmp", optP) != 0)) 1213 if ((optP == NULL) || (strcmp("icmp", optP) == 0)) {
|
/illumos-gate/usr/src/uts/common/inet/iptun/ |
H A D | iptun.c | 2093 iptun_sendicmp_v4(iptun_t *iptun, icmph_t *icmp, ipha_t *orig_ipha, mblk_t *mp, argument 2124 *new_icmp = *icmp; 2206 icmph_t icmp; local 2208 bzero(&icmp, sizeof (icmp)); 2209 icmp.icmph_type = type; 2210 icmp.icmph_code = code; 2212 iptun_sendicmp_v4(iptun, &icmp, orig_ipha, mp, tsl); 2219 icmph_t icmp; local 2221 icmp [all...] |
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 863 struct icmp6_hdr *icmp; local 891 icmp = (struct icmp6_hdr *)hdrp; 893 if (icmp->icmp6_type != ND_ROUTER_ADVERT || 894 icmp->icmp6_code != 0) 897 *ra = (nd_router_advert_t *)icmp;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
H A D | netstat.c | 197 static void print_icmp_stats(mib2_icmp_t *icmp); 463 } else if (strcmp(optarg, "icmp") == 0) { 911 if (ioctl(sd, I_PUSH, "icmp") == -1) { 912 perror("icmp I_PUSH"); 1936 mib2_icmp_t *icmp = local 1943 print_icmp_stats(icmp); 2119 print_icmp_stats(mib2_icmp_t *icmp) argument 2122 prval("icmpInMsgs", icmp->icmpInMsgs); 2123 prval("icmpInErrors", icmp->icmpInErrors); 2124 prval("icmpInCksumErrs", icmp [all...] |