/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/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...] |
Makefile | 6 TESTSDIR= ${TESTSBASE}/net/icmp
|
/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/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 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/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...] |
/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 in function:create_ip_packet 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 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/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 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.c | 136 * ICMP routines: error generation, receive packet processing, and 199 icmp_wqinput = wqinput_create("icmp", _icmp_input); 248 * Note that ICMP datagrams longer than 576 octets are out of spec according 257 struct icmp *icp; 271 * - The packet is an ICMP message with an unknown type. 281 struct icmp *oicp = (struct icmp *)((char *)oip + oiphlen); 344 * Get pointers on the IP header and the ICMP header. 347 icp = (struct icmp *)(nip + 1); 350 * Fill in the fields of the ICMP header: icmp_type, icmp_cod [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/sys/netmpls/ |
mpls_ttl.c | 132 /* ICMP Extensions */ 147 * Send an ICMP Extended error message. References: RFC4884 and RFC4950. 150 * into it. icmp_error() should handle ICMP Extended error messages. 154 * XXX: We're not setting the 'length' field of the Extended ICMP header. 156 * not computing the checksum of the Extended ICMP header. 164 struct icmp *icp; 186 * Don't error if the old packet protocol was ICMP 195 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type)) 213 * Now, formulate icmp message 225 packetlen = sizeof(struct ip) + offsetof(struct icmp, icmp_ip) [all...] |
/src/usr.bin/systat/ |
Makefile | 15 fetch.c globalcmds.c icmp.c ifcmds.c ifstat.c iostat.c ip.c \
|
/src/sbin/ping/ |
ping.c | 38 * Using the InterNet Control Message Protocol (ICMP) "ECHO" facility, 56 * This program has to run SUID to ROOT to access the ICMP socket. 102 #define F_SEMI_QUIET 0x0004 /* ignore our ICMP errors */ 177 u_char u_buf[MAXPACKET+offsetof(struct icmp, icmp_data)]; 178 struct icmp u_icmp; 231 static void pr_iph(struct icmp *, int); 232 static void pr_retip(struct icmp *, int); 233 static int pr_icmph(struct icmp *, struct sockaddr_in *, int); 886 * Compose and transmit an ICMP ECHO REQUEST packet. The IP packet 904 /* clear the cached route in the kernel after an ICMP [all...] |
/src/sys/external/bsd/ipf/netinet/ |
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_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...] |
/src/sys/netipsec/ |
ipsec_netbsd.c | 92 struct icmp *icp; 104 * the address in the ICMP message payload. 115 * ICMP message, locate the ICMP header, 119 icp = (struct icmp *)((char *)ip - 120 offsetof(struct icmp, icmp_ip)); 135 struct icmp *icp; 147 * the address in the ICMP message payload. 158 * ICMP message, locate the ICMP header [all...] |
/src/usr.sbin/npf/npftest/libnpftest/ |
npf_mbuf_subr.c | 161 size = offsetof(struct icmp, icmp_data); 251 struct icmp *ic = (struct icmp *)p;
|