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

1 2 3 4

  /src/external/cddl/dtracetoolkit/dist/Bin/
icmpstat.d 3 * icmpstat.d - print ICMP statistics. Uses DTrace.
5 * This prints ICMP statistics every second, retrieved from the MIB provider.
6 * This is a simple script to demonstrate the ability to trace ICMP events.
13 * STATISTIC ICMP statistic name
16 * The above ICMP statistics are documented in the mib2_icmp struct
45 mib:::icmp*
47 @icmp[probename] = sum(arg0);
57 printa("%32s %@8d\n", @icmp);
60 trunc(@icmp);
  /src/external/cddl/dtracetoolkit/dist/Net/
icmpstat.d 3 * icmpstat.d - print ICMP statistics. Uses DTrace.
5 * This prints ICMP statistics every second, retrieved from the MIB provider.
6 * This is a simple script to demonstrate the ability to trace ICMP events.
13 * STATISTIC ICMP statistic name
16 * The above ICMP statistics are documented in the mib2_icmp struct
45 mib:::icmp*
47 @icmp[probename] = sum(arg0);
57 printa("%32s %@8d\n", @icmp);
60 trunc(@icmp);
  /src/usr.sbin/pf/etc/defaults/
pf.boot.conf 24 pass out inet proto icmp all icmp-type echoreq keep state
27 pass out inet6 proto ipv6-icmp all icmp6-type neighbrsol
28 pass in inet6 proto ipv6-icmp all icmp6-type neighbradv
29 pass out inet6 proto ipv6-icmp all icmp6-type routersol
30 pass in inet6 proto ipv6-icmp all icmp6-type routeradv
  /src/etc/defaults/
npf.boot.conf 26 pass stateful out proto icmp icmp-type echo all
35 pass out family inet6 proto ipv6-icmp icmp-type rtsol all
36 pass in family inet6 proto ipv6-icmp icmp-type rtadv all
37 pass out family inet6 proto ipv6-icmp icmp-type neighsol all
38 pass family inet6 proto ipv6-icmp icmp-type neighadv al
    [all...]
  /src/share/examples/npf/
l2tp_gw-npf.conf 13 alg "icmp"
49 pass stateful out final proto icmp all
50 pass stateful out final proto ipv6-icmp all
107 # FIXME: port-unr for ICMP is not yet supported.
109 block return-icmp in final proto udp to any port 33433-33524 apply "log"
112 # Only allow selected ICMP types.
114 pass in final proto icmp icmp-type echo all
115 pass in final proto icmp icmp-type timxceed al
    [all...]
host-npf.conf 6 # DHCP (v4 and v6), SLAAC, ICMPv6, ICMP echo requests, traceroute, mDNS traffic
22 alg "icmp"
52 # Allow IPv6 ICMP
53 pass family inet6 proto ipv6-icmp all
56 pass in family inet4 proto icmp icmp-type echo all
soho_gw-npf.conf 77 pass in family inet4 proto icmp icmp-type echo all
  /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/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...]
Makefile 6 TESTSDIR= ${TESTSBASE}/net/icmp
  /src/external/bsd/ipf/dist/perl/
logfilter.pl 27 %icmp = ();
43 if ($proto =~ m/^icmp$/) { $icmp{$identifier} = $filename; last SWITCH; };
67 # ICMP Protocol
69 # Extract the icmp packet information specifying the type.
71 # Note: Must check for ICMP first because this may be an ICMP reply
74 ($icmptype) = $line =~ m/icmp (\d+)\/\d+/;
77 $filename = $icmp{$icmptype} if (defined($icmp{$icmptype}))
    [all...]
  /src/crypto/dist/ipsec-tools/src/setkey/
sample-policy01.cf 6 spdadd 127.0.0.1 127.0.0.1 icmp
  /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/tests/net/
Makefile 9 TESTS_SUBDIRS+= altq arp bpf bpfilter can carp icmp if if_bridge if_gif
  /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/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...]
  /src/external/mpl/dhcp/lib/common/
Makefile 6 SRCS = raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c socket.c \
  /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/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/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/sys/netinet/
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);
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
  /src/external/bsd/libpcap/dist/
scanner.l 270 icmp return ICMP;
427 icmp-echoreply { yylval->h = 0; return NUM; }
428 icmp-unreach { yylval->h = 3; return NUM; }
429 icmp-sourcequench { yylval->h = 4; return NUM; }
430 icmp-redirect { yylval->h = 5; return NUM; }
431 icmp-echo { yylval->h = 8; return NUM; }
432 icmp-routeradvert { yylval->h = 9; return NUM; }
433 icmp-routersolicit { yylval->h = 10; return NUM; }
434 icmp-timxceed { yylval->h = 11; return NUM;
    [all...]
  /src/usr.sbin/npf/npfctl/
npf_scan.l 162 icmp { yylval.num = IPPROTO_ICMP; return ICMP; }
163 ipv6-icmp { yylval.num = IPPROTO_ICMPV6; return ICMP6; }
164 \"ipv6-icmp\" { yylval.num = IPPROTO_ICMPV6; return ICMP6; }
166 return-icmp return RETURNICMP;
173 icmp-type return ICMPTYPE;
  /src/external/bsd/ipf/dist/rules/
BASIC_2.FW 65 pass in log quick proto icmp all keep state group 200
71 # * return ICMP error packets for invalid UDP packets
72 block return-icmp(net-unr) in proto udp all group 100

Completed in 27 milliseconds

1 2 3 4