/src/sys/arch/sandpoint/stand/altboot/ |
exception.c | 45 uint32_t imiss, icmp, rpa; member in struct:cpu_state 91 "IMISS=%08x ICMP=%08x RPA=%08x\n\n", 95 st->imiss,st->icmp,st->rpa);
|
/src/tests/net/config/ |
netconfig.c | 197 struct icmp icmp; local in function:netcfg_rump_pingtest 216 memset(&icmp, 0, sizeof(icmp)); 217 icmp.icmp_type = ICMP_ECHO; 218 icmp.icmp_id = htons(37); 219 icmp.icmp_cksum = htons(0xf7da); /* precalc */ 222 if (rump_sys_sendto(s, &icmp, sizeof(icmp), 0, 227 if (rump_sys_recvfrom(s, &icmp, sizeof(icmp), 0 [all...] |
/src/regress/sys/net/frag/ |
ip4_frag_1.c | 56 #define ICMP_SIZE offsetof(struct icmp, icmp_ip) 120 struct icmp *icmp = (void *)data; local in function:create_ip_packet 121 icmp->icmp_type = ICMP_ECHO; 122 icmp->icmp_code = 0; 123 icmp->icmp_cksum = 0;
|
/src/sys/net/npf/ |
npf_alg_icmp.c | 31 * NPF ALG for ICMP and traceroute translations. 119 * npfa_icmp{4,6}_inspect: retrieve unique identifiers - either ICMP query 139 if (!nbuf_advance(nbuf, offsetof(struct icmp, icmp_ip), 0)) { 150 /* Contains ICMP query ID. */ 178 /* Contains ICMP query ID. */ 188 * npfa_icmp_inspect: ALG ICMP inspector. 201 /* Advance to ICMP header. */ 211 * Inspect the ICMP packet. The relevant data might be in the 216 const struct icmp *ic = npc->npc_l4.icmp; 459 static const npfa_funcs_t icmp = { local in function:npf_alg_icmp_init [all...] |
npf.h | 149 #define NPC_ICMP 0x40 /* ICMP header. */ 150 #define NPC_ICMP_ID 0x80 /* ICMP with query ID. */ 187 /* TCP, UDP, ICMP or other protocols. */ 191 struct icmp * icmp; member in union:__anonb49106fe0208::__anonb49106fe040a
|
/src/tests/net/icmp/ |
t_ping.c | 144 struct icmp i; /* ensure proper alignment */ 148 struct icmp *icmp; local in function:doping 163 icmp = (struct icmp *)&sndbuf; 164 memset(icmp, 0, sizeof(*icmp)); 165 icmp->icmp_type = ICMP_ECHO; 166 icmp->icmp_id = htons(37); 168 if (pktsize < sizeof(*icmp)) 339 struct icmp *icmp; local in function:ATF_TC_BODY [all...] |
/src/sys/netinet/ |
tcp_timer.c | 325 struct icmp icmp; local in function:tcp_timer_rexmt 329 /* XXX create fake icmp message with relevant entries */ 330 icmp.icmp_nextmtu = tp->t_pmtud_nextmtu; 331 icmp.icmp_ip.ip_len = tp->t_pmtud_ip_len; 332 icmp.icmp_ip.ip_hl = tp->t_pmtud_ip_hl; 334 icmp_mtudisc(&icmp, icmpsrc.sin_addr); 382 * too big" ICMP messages. We should ideally do
|
ip_icmp.h | 43 * Internal of an ICMP Router Advertisement 51 * Structure of an icmp header. 53 struct icmp { struct 140 * ICMP Extension Structure Header (RFC4884). 155 * ICMP Extension Object Header (RFC4884). 165 __CTASSERT(sizeof(struct icmp) == 28); 301 void icmp_mtudisc(struct icmp *, struct in_addr);
|
/src/sys/external/bsd/ipf/netinet/ |
ip_log.c | 414 struct icmp *icmp; local in function:ipf_log_pkt 416 icmp = (struct icmp *)fin->fin_dp; 419 * For ICMP, if the packet is an error packet, also 423 switch (icmp->icmp_type) 430 hlen += MIN(sizeof(struct icmp) + 8, 434 hlen += MIN(sizeof(struct icmp), 441 struct icmp6_hdr *icmp; local in function:ipf_log_pkt 443 icmp = (struct icmp6_hdr *)fin->fin_dp [all...] |
ip_fil_netbsd.c | 910 struct icmp *icmp; local in function:ipf_send_icmp_err 971 iclen = hlen + offsetof(struct icmp, icmp_ip) + ohlen; 982 iclen = hlen + offsetof(struct icmp, icmp_ip) + ohlen; 1027 icmp = (struct icmp *)((char *)ip + hlen); 1028 ip2 = (ip_t *)&icmp->icmp_ip; 1030 icmp->icmp_type = type; 1031 icmp->icmp_code = fin->fin_icode; 1032 icmp->icmp_cksum = 0 [all...] |
ip_state.c | 390 "ipftq icmp tab"); 1140 /* Function matches IPv4 addresses it returns strong match for ICMP proto */ 1152 /* force strong match for ICMP protocol */ 1168 /* Function matches IPv6 addresses it returns strong match for ICMP proto */ 1281 /* force strong match for ICMP datagram. */ 1353 struct icmp *ic; 2616 /* If we've got an ICMP error message, using the information stored in the */ 2617 /* ICMP packet, look for a matching state table entry. */ 2629 struct icmp *ic; 2631 icmphdr_t *icmp; local in function:ipf_checkicmpmatchingstate [all...] |
ip_nat.c | 485 "nat icmp ipftq tab"); 940 /* ICMP error message. Such a message, contains in its body the IP header */ 944 /* kernel the data section of the ICMP error is just data, and no special */ 3113 * In the ICMP query NAT code, we translate the ICMP id fields 3114 * to make them unique. This is indepedent of the ICMP type 3120 * process making the icmp request. (the receiver justs 3560 /* Check if the ICMP error message is related to an existing TCP, UDP or */ 3561 /* ICMP query nat entry. It is assumed that the packet is already of the */ 3581 * Only a basic IP header (no options) should be with an ICMP erro 3725 icmphdr_t *icmp; local in function:ipf_nat_icmperror 4992 icmphdr_t *icmp; local in function:ipf_nat_out 5279 icmphdr_t *icmp; local in function:ipf_nat_checkin 5485 icmphdr_t *icmp; local in function:ipf_nat_in 5723 icmphdr_t *icmp; local in function:ipf_nat_proto [all...] |
fil.c | 1201 /* Do a sanity check on the packet for ICMP (v4). In nearly all cases, */ 1203 /* The expected minimum size of an ICMP packet is very much dependent on */ 1206 /* XXX - other ICMP sanity checks? */ 1212 int minicmpsz = sizeof(struct icmp); 1213 icmphdr_t *icmp; local in function:ipf_pr_icmp 1228 icmp = fin->fin_dp; 1230 fin->fin_data[0] = *(u_short *)icmp; 1231 fin->fin_data[1] = icmp->icmp_id; 1233 switch (icmp->icmp_type) 1268 if (icmp->icmp_code == ICMP_UNREACH_NEEDFRAG) [all...] |
/src/tests/net/bpfilter/ |
t_bpfilter.c | 81 sizeof(struct ip) + offsetof(struct icmp, icmp_type)), 158 struct icmp *icmp; local in function:pingtest 169 if (pktsize < sizeof(struct icmp) + 7) 190 icmp = (struct icmp *)pkt; 195 icmp->icmp_type = ICMP_ECHO; 196 icmp->icmp_id = htons(37); 197 icmp->icmp_seq = htons(1); 198 icmp->icmp_cksum = in_cksum(pkt, pktsize) [all...] |
/src/tests/net/net/ |
t_pktinfo_send.c | 490 struct icmp icmp; local in function:ATF_TC_BODY 499 memset(&icmp, 0, sizeof(icmp)); 500 icmp.icmp_type = ICMP_ECHOREPLY; /* against confuse REQ with REPLY */ 501 icmp.icmp_id = htons(getpid()); 502 icmp.icmp_cksum = in_cksum((uint16_t *)&icmp, sizeof(icmp)); 503 icmplen = sizeof(icmp); 522 struct icmp icmp; local in function:ATF_TC_BODY [all...] |
/src/sbin/routed/ |
rdisc.c | 50 /* router advertisement ICMP packet */ 64 /* router solicitation ICMP packet */ 73 struct icmp icmp; member in union:ad_u 110 /* dump an ICMP Router Discovery Advertisement Message 129 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 695 /* Send a router discovery advertisement or solicitation ICMP packet. 912 /* check the IP header of a possible Router Discovery ICMP packet */ 924 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 926 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) [all...] |
/src/sys/dist/pf/net/ |
pfvar.h | 113 #define PFTM_ICMP_FIRST_PACKET_VAL 20 /* First ICMP packet */ 1087 struct icmp *icmp; member in union:pf_pdesc::__anon30a5ecce1c0a
|