| /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 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 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 [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:__anon7047::__anon7049
|
| /src/sys/netinet/ |
| tcp_timer.c | 325 struct icmp icmp; local 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/external/bsd/ipf/dist/lib/ |
| ipft_tx.c | 169 struct icmp icmp, *ic = &icmp; local 218 !strcasecmp(*cpp, "icmp")) { 230 tx_proto = "icmp"; 347 struct icmp6_hdr icmp, *ic6 = &icmp; local
|
| /src/external/mpl/dhcp/dist/common/ |
| icmp.c | 1 /* $NetBSD: icmp.c,v 1.3 2022/04/03 01:10:58 christos Exp $ */ 5 ICMP Protocol engine - for sending out pings and receiving 33 __RCSID("$NetBSD: icmp.c,v 1.3 2022/04/03 01:10:58 christos Exp $"); 50 /* Initialize the ICMP protocol. */ 61 /* Only initialize icmp once. */ 63 log_fatal ("attempted to reinitialize icmp protocol"); 65 result = omapi_object_type_register (&dhcp_type_icmp, "icmp", 71 log_fatal ("Can't register icmp object type: %s", 78 trace_icmp_input = trace_type_register ("icmp-input", (void *)0, 81 trace_icmp_output = trace_type_register ("icmp-output", (void *)0 137 struct icmp icmp; local [all...] |
| /src/sys/external/bsd/ipf/netinet/ |
| ip_log.c | 414 struct icmp *icmp; local 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 443 icmp = (struct icmp6_hdr *)fin->fin_dp [all...] |
| ip_fil_netbsd.c | 910 struct icmp *icmp; local 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 [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 */ 3114 * In the ICMP query NAT code, we translate the ICMP id fields 3115 * to make them unique. This is indepedent of the ICMP type 3121 * process making the icmp request. (the receiver justs 3561 /* Check if the ICMP error message is related to an existing TCP, UDP or */ 3562 /* ICMP query nat entry. It is assumed that the packet is already of the */ 3582 * Only a basic IP header (no options) should be with an ICMP erro 3726 icmphdr_t *icmp; local 4993 icmphdr_t *icmp; local 5280 icmphdr_t *icmp; local 5486 icmphdr_t *icmp; local 5724 icmphdr_t *icmp; local [all...] |
| /src/tests/net/bpfilter/ |
| t_bpfilter.c | 81 sizeof(struct ip) + offsetof(struct icmp, icmp_type)), 158 struct icmp *icmp; local 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/icmp/ |
| t_ping.c | 144 struct icmp i; /* ensure proper alignment */ 148 struct icmp *icmp; local 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 [all...] |
| /src/tests/net/net/ |
| t_pktinfo_send.c | 490 struct icmp icmp; local 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 [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| ConstantRange.cpp | 86 llvm_unreachable("Invalid ICmp predicate to makeAllowedICmpRegion()"); 184 bool ConstantRange::icmp(CmpInst::Predicate Pred, function in class:ConstantRange
|
| /src/external/bsd/ipf/dist/iplang/ |
| iplang_y.y | 80 icmphdr_t *icmp = NULL; 285 | icmp icmpline 373 icmp: IL_ICMP { new_icmpheader(); } label 1497 fprintf(stderr, "protocol %d specified with ICMP!\n", 1502 icmp = (icmphdr_t *)new_header(IPPROTO_ICMP); 1509 icmp->icmp_code = code; 1516 icmp->icmp_type = type; 1528 icmp->icmp_code = i; 1532 fprintf(stderr, "unknown ICMP code %s\n", *code); 1546 icmp->icmp_type = i [all...] |
| /src/external/bsd/ipf/dist/ipsd/Celler/ |
| ip_compat.h | 116 # define icmp icmphdr macro
|
| /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/external/mpl/dhcp/dist/includes/netinet/ |
| ip_icmp.h | 43 * Internal of an ICMP Router Advertisement 51 * Structure of an icmp header. 53 struct icmp { struct
|
| /src/external/bsd/ipf/dist/tools/ |
| ipmon.c | 937 sprintf(t, "%s PR icmp %d", 1036 struct icmp icmp; local 1037 struct icmp ic; 1267 sprintf(t, "%s PR icmp len %hu %hu icmp %s", 1275 const void *ipcp = (const char *)pac + 2 * hl + offsetof(struct icmp, icmp_ip); 1279 * XXX - try to guess endian of ip_len in ICMP 1304 memcpy(&icmp, ipcp, sizeof(icmp)); [all...] |
| ipf_y.y | 470 ip: srcdst flags icmp 1276 icmp: | itype icode label 1292 yyerror("proto not icmp"); 1297 yyerror("proto not ipv6-icmp"); 1546 yyerror("unrecognised icmp type"); 1786 { "icmp", IPFY_ICMP }, 1787 { "icmp-head", IPFY_ICMPHEAD }, 1788 { "icmp-type", IPFY_ICMPTYPE }, 1816 { "no-icmp-err", IPFY_NOICMPERR }, 1834 { "return-icmp", IPFY_RETICMP } [all...] |
| /src/external/bsd/tcpdump/dist/ |
| print-icmp.c | 24 __RCSID("$NetBSD: print-icmp.c,v 1.14 2024/09/02 16:15:31 christos Exp $"); 27 /* \summary: Internet Control Message Protocol (ICMP) printer */ 51 * Structure of an icmp header. 53 struct icmp { struct 101 #define ICMP_EXTD_MINLEN (156 - sizeof (struct ip)) /* draft-bonica-internet-icmp-08 */ 191 /* Most of the icmp types */ 224 * RFC 4884 - Extended ICMP to Support Multi-Part Messages 227 * in draft-bonica-icmp-mpls-02 ICMP Extensions for MultiProtocol 260 nd_byte icmp_ext_legacy_header[128]; /* extension header starts 128 bytes after ICMP header * [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| socket_wrapper.c | 713 } icmp; member in union:swrap_packet::__anon933::__anon935 757 if (sizeof(p.ip.p.icmp) != SWRAP_PACKET__IP_P_ICMP_SIZE) { 812 protocol = 0x01; /* ICMP */ 816 icmp_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.icmp); 849 packet->ip.p.icmp.type = 0x03; /* destination unreachable */ 850 packet->ip.p.icmp.code = 0x01; /* host unreachable */ 851 packet->ip.p.icmp.checksum = htons(0x0000); 852 packet->ip.p.icmp.unused = htonl(0x00000000); 854 /* set the ip header in the ICMP payload */
|