HomeSort by: relevance | last modified time | path
    Searched defs:icmp (Results 1 - 25 of 34) sorted by relevancy

1 2

  /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);
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...]
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;
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_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...]
  /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...]
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
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);
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_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_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...]
  /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...]
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...]
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...]
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...]

Completed in 34 milliseconds

1 2