/freebsd-11-stable/sbin/natd/ |
H A D | icmp.c | 8 * You may copy, modify and distribute this software (icmp.c) freely. 43 struct icmp* icmp; local 65 icmp = (struct icmp*) (icmpBuf + sizeof (struct ip)); 69 icmp->icmp_type = ICMP_UNREACH; 70 icmp->icmp_code = ICMP_UNREACH_NEEDFRAG; 71 icmp->icmp_cksum = 0; 72 icmp->icmp_void = 0; 73 icmp [all...] |
H A D | Makefile | 5 SRCS = natd.c icmp.c
|
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/mib/ |
H A D | Makefile | 10 tst.icmp.ksh \
|
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/ |
H A D | 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)) 327 struct icmp *icmp; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/net/config/ |
H A D | netconfig.c | 193 struct icmp icmp; local 212 memset(&icmp, 0, sizeof(icmp)); 213 icmp.icmp_type = ICMP_ECHO; 214 icmp.icmp_id = htons(37); 215 icmp.icmp_cksum = htons(0xf7da); /* precalc */ 218 if (rump_sys_sendto(s, &icmp, sizeof(icmp), 0, 223 if (rump_sys_recvfrom(s, &icmp, sizeo [all...] |
/freebsd-11-stable/usr.bin/systat/ |
H A D | Makefile | 8 netcmds.c netstat.c pigs.c swap.c icmp.c \
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | scanner.l | 266 icmp return ICMP; 421 icmp-echoreply { yylval->i = 0; return NUM; } 422 icmp-unreach { yylval->i = 3; return NUM; } 423 icmp-sourcequench { yylval->i = 4; return NUM; } 424 icmp-redirect { yylval->i = 5; return NUM; } 425 icmp-echo { yylval->i = 8; return NUM; } 426 icmp-routeradvert { yylval->i = 9; return NUM; } 427 icmp-routersolicit { yylval->i = 10; return NUM; } 428 icmp-timxceed { yylval->i = 11; return NUM; } 429 icmp [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | routing | 323 ${SYSCTL} net.inet.icmp.bmcastecho=1 > /dev/null 325 ${SYSCTL} net.inet.icmp.bmcastecho=0 > /dev/null 331 ${SYSCTL} net.inet.icmp.drop_redirect=1 > /dev/null 333 ${SYSCTL} net.inet.icmp.drop_redirect=0 > /dev/null 339 ${SYSCTL} net.inet.icmp.log_redirect=1 > /dev/null 341 ${SYSCTL} net.inet.icmp.log_redirect=0 > /dev/null
|
/freebsd-11-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 738 struct icmp *icmp; local 755 icmp = mtodo(m, ip->ip_hl << 2); 756 if (!ICMP_INFOTYPE(icmp->icmp_type)) { 801 icmp = mtodo(n, sizeof(struct ip)); 802 icmp->icmp_type = type; 803 icmp->icmp_code = code; 804 icmp->icmp_cksum = 0; 805 icmp->icmp_pmvoid = 0; 806 icmp 848 struct icmp *icmp; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/net/bpfilter/ |
H A D | 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 [all...] |
/freebsd-11-stable/usr.sbin/timed/timed/ |
H A D | measure.c | 76 register struct icmp *icp = (struct icmp *) packet; 77 register struct icmp *oicp = (struct icmp *) opacket; 97 * empty the icmp input queue 187 icp = (struct icmp *)(packet + (ip->ip_hl << 2));
|
/freebsd-11-stable/etc/ |
H A D | rc.firewall | 103 ${fwcmd} add pass ipv6-icmp from :: to ff02::/16 105 ${fwcmd} add pass ipv6-icmp from fe80::/10 to fe80::/10 106 ${fwcmd} add pass ipv6-icmp from fe80::/10 to ff02::/16 109 ${fwcmd} add pass ipv6-icmp from any to any icmp6types 1 112 ${fwcmd} add pass ipv6-icmp from any to any icmp6types 2,135,136 452 ${fwcmd} add pass icmp from me to any keep-state 454 ${fwcmd} add pass ipv6-icmp from me to any keep-state 466 ${fwcmd} add pass icmp from any to any icmptype 8 468 ${fwcmd} add pass ipv6-icmp from any to any icmp6type 128,129 472 ${fwcmd} add pass icmp fro [all...] |
/freebsd-11-stable/contrib/ipfilter/rules/ |
H A D | BASIC_2.FW | 65 pass in log quick proto icmp all keep state group 200 72 block return-icmp(net-unr) in proto udp all group 100
|
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 512 struct icmp *icmp; local 573 iclen = hlen + offsetof(struct icmp, icmp_ip) + ohlen; 584 iclen = hlen + offsetof(struct icmp, icmp_ip) + ohlen; 626 icmp = (struct icmp *)((char *)ip + hlen); 627 ip2 = (ip_t *)&icmp->icmp_ip; 629 icmp->icmp_type = type; 630 icmp->icmp_code = fin->fin_icode; 631 icmp [all...] |
H A D | ip_log.c | 389 struct icmp *icmp; local 391 icmp = (struct icmp *)fin->fin_dp; 398 switch (icmp->icmp_type) 405 hlen += MIN(sizeof(struct icmp) + 8, 409 hlen += MIN(sizeof(struct icmp), 416 struct icmp6_hdr *icmp; local 418 icmp = (struct icmp6_hdr *)fin->fin_dp; 425 if (icmp [all...] |
/freebsd-11-stable/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 70 icmphdr_t *icmp = NULL; 275 | icmp icmpline 363 icmp: IL_ICMP { new_icmpheader(); } label 1466 icmp = (icmphdr_t *)new_header(IPPROTO_ICMP); 1473 icmp->icmp_code = code; 1480 icmp->icmp_type = type; 1492 icmp->icmp_code = i; 1510 icmp->icmp_type = i; 1524 icmp->icmp_id = htons(arg); 1531 icmp [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | ipft_tx.c | 171 struct icmp icmp, *ic = &icmp; local 220 !strcasecmp(*cpp, "icmp")) { 232 tx_proto = "icmp"; 349 struct icmp6_hdr icmp, *ic6 = &icmp; local
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 292 struct icmphdr *icmp; local 353 icmp = L3HDR(struct icmphdr, ip); 357 icmp->icmp_type, icmp->icmp_code);
|
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias.c | 302 struct icmp *ic; 304 ic = (struct icmp *)ip_next(pip); 347 struct icmp *ic, *ic2; 352 ic = (struct icmp *)ip_next(pip); 357 ic2 = (struct icmp *)ip_next(ip); 442 struct icmp *ic; 455 ic = (struct icmp *)ip_next(pip); 491 struct icmp *ic; 494 ic = (struct icmp *)ip_next(pip); 536 struct icmp *i [all...] |
/freebsd-11-stable/sbin/routed/ |
H A D | rdisc.c | 69 struct icmp icmp; member in union:ad_u 126 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 906 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { 908 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { 914 if (p->icmp.icmp_code != 0) { 916 type, p->icmp.icmp_code, 1005 switch (p->icmp.icmp_type) {
|
/freebsd-11-stable/sys/netinet/ |
H A D | ip_icmp.c | 195 struct icmp *icp; 230 !ICMP_INFOTYPE(((struct icmp *)((caddr_t)oip + 327 icp = mtod(m, struct icmp *); 392 struct icmp *icp; 406 * Locate icmp structure in mbuf, and check 431 icp = mtod(m, struct icmp *); 546 icp = (struct icmp *)(ip + 1); 647 printf("icmp redirect from %d.%d.%d.%d: " 807 * designated interface for icmp replies specified by sysctl 808 * net.inet.icmp [all...] |
/freebsd-11-stable/release/tools/ |
H A D | gce.conf | 85 net.inet.icmp.drop_redirect=1
|
/freebsd-11-stable/tests/sys/netinet/ |
H A D | fibs_test.sh | 83 --source-mac ${SPOOF_MAC} --icmp --icmp-type "echo-request" \ 84 --icmp-code 0 --icmp-id 0xdead --icmp-seq 1 --data 0xbeef \
|
/freebsd-11-stable/tools/test/netfibs/ |
H A D | forwarding.sh | 524 ipfw add $((10000 + i)) count ipv6-icmp from any to any \ 532 ipfw add $((20000 + i)) count ipv6-icmp from any to any \ 572 awk '/ ipv6-icmp / { print $2 }'` ;; 786 ipfw add 100 setfib 0 ipv6-icmp from any to any \ 793 ipfw add 100 setfib 0 ipv6-icmp from any to any \ 936 ipfw add 100 setfib ${i} ipv6-icmp from any to any \ 943 ipfw add 100 setfib ${i} ipv6-icmp from any to any \ 1106 ipfw add 100 setfib ${i} ipv6-icmp from any to any \ 1114 ipfw add 100 setfib ${j} ipv6-icmp from any to any \ 1318 ipfw add 100 setfib ${i} ipv6-icmp fro [all...] |
/freebsd-11-stable/contrib/ipfilter/ipsend/ |
H A D | ip.c | 328 * send an icmp packet. 335 struct icmp *ic; 337 ic = (struct icmp *)((char *)ip + (IP_HL(ip) << 2)); 340 ic->icmp_cksum = chksum((u_short *)ic, sizeof(struct icmp));
|