| /dragonfly/sbin/natd/ |
| HD | icmp.c | 45 struct icmp* icmp; in SendNeedFragIcmp() local 67 icmp = (struct icmp *)(icmpBuf + sizeof(struct ip)); in SendNeedFragIcmp() 71 icmp->icmp_type = ICMP_UNREACH; in SendNeedFragIcmp() 72 icmp->icmp_code = ICMP_UNREACH_NEEDFRAG; in SendNeedFragIcmp() 73 icmp->icmp_cksum = 0; in SendNeedFragIcmp() 74 icmp->icmp_void = 0; in SendNeedFragIcmp() 75 icmp->icmp_nextmtu = htons(mtu); in SendNeedFragIcmp() 87 memcpy(&icmp->icmp_ip, failedDgram, failBytes); in SendNeedFragIcmp() 91 icmp->icmp_cksum = PacketAliasInternetChecksum((u_short *)icmp, in SendNeedFragIcmp() 117 icmp, in SendNeedFragIcmp()
|
| HD | Makefile | 5 SRCS= natd.c icmp.c
|
| /dragonfly/contrib/libpcap/ |
| HD | scanner.l | 264 icmp return ICMP; 421 icmp-echoreply { yylval->h = 0; return NUM; } 422 icmp-unreach { yylval->h = 3; return NUM; } 423 icmp-sourcequench { yylval->h = 4; return NUM; } 424 icmp-redirect { yylval->h = 5; return NUM; } 425 icmp-echo { yylval->h = 8; return NUM; } 426 icmp-routeradvert { yylval->h = 9; return NUM; } 427 icmp-routersolicit { yylval->h = 10; return NUM; } 428 icmp-timxceed { yylval->h = 11; return NUM; } 429 icmp-paramprob { yylval->h = 12; return NUM; } [all …]
|
| /dragonfly/sbin/ip6fw/ |
| HD | sample.sh | 18 $fwcmd add 2000 pass ipv6-icmp from ff02::/16 to :: 19 $fwcmd add 2100 pass ipv6-icmp from :: to ff02::/16 21 $fwcmd add 2300 pass ipv6-icmp from fe80::/10 to fe80::/10 22 $fwcmd add 2400 pass ipv6-icmp from fe80::/10 to ff02::/16
|
| /dragonfly/etc/ |
| HD | rc.firewall6 | 63 ${fw6cmd} add pass ipv6-icmp from :: to ff02::/16 65 ${fw6cmd} add pass ipv6-icmp from fe80::/10 to fe80::/10 66 ${fw6cmd} add pass ipv6-icmp from fe80::/10 to ff02::/16 155 ${fw6cmd} add pass ipv6-icmp from any to any icmptypes 1 158 ${fw6cmd} add pass ipv6-icmp from any to any icmptypes 2,135,136 267 ${fw6cmd} add pass ipv6-icmp from any to any icmptypes 1 270 ${fw6cmd} add pass ipv6-icmp from any to any icmptypes 2,135,136
|
| HD | protocols | 12 icmp 1 ICMP # internet control message protocol 69 ipv6-icmp 58 IPV6-ICMP icmp6 # ICMP for IPv6
|
| HD | rc.firewall | 119 ${fwcmd} add allow icmp from any to any icmptypes ${type}
|
| /dragonfly/lib/libalias/ |
| HD | alias.c | 287 struct icmp *ic; in IcmpAliasIn1() 289 ic = (struct icmp *) ((char *) pip + (pip->ip_hl << 2)); in IcmpAliasIn1() 333 struct icmp *ic, *ic2; in IcmpAliasIn2() 338 ic = (struct icmp *) ((char *) pip + (pip->ip_hl << 2)); in IcmpAliasIn2() 343 ic2 = (struct icmp *) ud; in IcmpAliasIn2() 437 struct icmp *ic; in IcmpAliasIn() 443 ic = (struct icmp *) ((char *) pip + (pip->ip_hl << 2)); in IcmpAliasIn() 478 struct icmp *ic; in IcmpAliasOut1() 480 ic = (struct icmp *) ((char *) pip + (pip->ip_hl << 2)); in IcmpAliasOut1() 525 struct icmp *ic, *ic2; in IcmpAliasOut2() [all …]
|
| /dragonfly/sys/netinet/ |
| HD | ip_icmp.c | 149 struct icmp *icp; in icmp_error() 171 !ICMP_INFOTYPE(((struct icmp *)((caddr_t)oip + oiplen))->icmp_type)) { in icmp_error() 189 icp = mtod(m, struct icmp *); in icmp_error() 263 struct icmp *icp; in icmp_mtudisc() 267 icp = mtodoff(m, struct icmp *, hlen); in icmp_mtudisc() 363 struct icmp *icp; in icmp_ctlinput() 367 icp = mtodoff(m, struct icmp *, hlen); in icmp_ctlinput() 455 struct icmp *icp; in icmp_redirect() 461 icp = mtodoff(m, struct icmp *, hlen); in icmp_redirect() 506 struct icmp *icp; in icmp_redirect_done() [all …]
|
| HD | ip_icmp.h | 66 struct icmp { struct
|
| /dragonfly/etc/rc.d/ |
| HD | routing | 82 ${SYSCTL_W} net.inet.icmp.bmcastecho=1 >/dev/null 89 ${SYSCTL_W} net.inet.icmp.drop_redirect=1 >/dev/null 96 ${SYSCTL_W} net.inet.icmp.log_redirect=1 >/dev/null
|
| /dragonfly/share/examples/pf/ |
| HD | faq-example1 | 51 pass in inet proto icmp all icmp-type $icmp_types keep state 57 pass out on $ext_if proto { udp, icmp } all keep state
|
| /dragonfly/usr.sbin/traceroute/ |
| HD | traceroute.c | 509 sizeof(struct icmp) + sizeof(struct packetdata)); in main() 900 struct icmp *icmpp = (struct icmp *)(p + lsrrlen); in send_probe() 1009 struct icmp *icp; in packet_ok() 1025 icp = (struct icmp *)(buf + hlen); in packet_ok() 1027 icp = (struct icmp *)buf; in packet_ok() 1035 struct icmp *icmpp; in packet_ok() 1048 icmpp = (struct icmp *)((u_char *)hip + hlen); in packet_ok()
|
| /dragonfly/sbin/routed/ |
| HD | rdisc.c | 61 struct icmp icmp; member 115 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in trace_rdisc() 899 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in ck_icmp() 901 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { in ck_icmp() 907 if (p->icmp.icmp_code != 0) { in ck_icmp() 909 type, p->icmp.icmp_code, in ck_icmp() 1000 switch (p->icmp.icmp_type) { in read_d()
|
| /dragonfly/sbin/ping/ |
| HD | ping.c | 188 static void pr_icmph(struct icmp *); 868 struct icmp *icp; in pinger() 873 icp = (struct icmp *)outpack; in pinger() 941 struct icmp *icp; in pr_pack() 962 icp = (struct icmp *)(buf + hlen); in pr_pack() 1092 struct icmp *oicmp = (struct icmp *)(oip + 1); in pr_pack() 1345 pr_icmph(struct icmp *icp) in pr_icmph()
|
| /dragonfly/share/examples/ppp/ |
| HD | ppp.conf.sample | 277 set filter alive 10 deny 0/0 MYADDR icmp # Ping to us from outside 307 set filter in 6 permit icmp # pings 308 set filter out 6 permit icmp # pings 381 # And outgoing icmp 382 set filter out 12 permit 0 0 icmp 395 set filter in 6 permit 0/0 0/0 icmp src eq 3 396 set filter in 7 permit 0/0 0/0 icmp src eq 4 397 set filter in 8 permit 0/0 0/0 icmp src eq 11 398 set filter in 9 permit 0/0 0/0 icmp src eq 12 401 set filter in 10 permit 0/0 0/0 icmp src eq 0 [all …]
|
| /dragonfly/sys/net/ipfw3/ |
| HD | ip_fw3.c | 322 struct icmp *icmp; in ip_fw3_chk() local 401 icmp = L3HDR(struct icmp, ip); in ip_fw3_chk() 402 args->f_id.flags = icmp->icmp_type; in ip_fw3_chk() 403 dst_port = icmp->icmp_id; in ip_fw3_chk()
|
| /dragonfly/usr.bin/systat/ |
| HD | Makefile | 10 icmp.c mode.c ip.c tcp.c vmstat.c ip6.c icmp6.c vmmeter.c symbols.c \
|
| /dragonfly/contrib/tcpdump/ |
| HD | print-icmp.c | 50 struct icmp { struct 298 const struct icmp *dp; in icmp_print() 315 dp = (const struct icmp *)bp; in icmp_print()
|
| /dragonfly/contrib/gcc-4.7/gcc/config/i386/ |
| HD | k6.md | 132 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc") 138 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc") 144 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc")
|
| /dragonfly/contrib/gcc-8.0/gcc/config/i386/ |
| HD | k6.md | 131 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc") 137 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc") 143 … (and (eq_attr "type" "alu,alu1,negnot,icmp,test,imovx,incdec,setcc")
|
| /dragonfly/usr.sbin/ppp/ |
| HD | ip.c | 279 const struct icmp *ih; in FilterCheck() 290 ih = (const struct icmp *)payload; in FilterCheck() 542 const struct icmp *icmph; in PacketCheck() 598 icmph = (const struct icmp *)payload; in PacketCheck()
|
| /dragonfly/sys/net/ipfw3_nat/ |
| HD | ip_fw3_nat.c | 214 old_port = &L3HDR(struct icmp, ip)->icmp_id; in ip_fw3_nat() 216 csum = &L3HDR(struct icmp, ip)->icmp_cksum; in ip_fw3_nat() 247 k->src_port = L3HDR(struct icmp, ip)->icmp_id; in ip_fw3_nat() 250 old_port = &L3HDR(struct icmp, ip)->icmp_id; in ip_fw3_nat() 251 csum = &L3HDR(struct icmp, ip)->icmp_cksum; in ip_fw3_nat()
|
| /dragonfly/sys/net/ip6fw/ |
| HD | ip6_fw.c | 144 static int icmp6type_match (struct icmp6_hdr * icmp, struct ip6_fw * f); 673 struct icmp6_hdr *icmp; in ip6_fw_chk() local 678 icmp = (struct icmp6_hdr *) ((caddr_t)ip6 + off); in ip6_fw_chk() 679 if (!icmp6type_match(icmp, f)) in ip6_fw_chk()
|
| /dragonfly/sys/net/pf/ |
| HD | pf.c | 3742 sport = dport = pd->hdr.icmp->icmp_id; in pf_test_rule() 3743 hdrlen = sizeof(*pd->hdr.icmp); in pf_test_rule() 3744 icmptype = pd->hdr.icmp->icmp_type; in pf_test_rule() 3745 icmpcode = pd->hdr.icmp->icmp_code; in pf_test_rule() 3850 if (nk->port[1] != pd->hdr.icmp->icmp_id) { in pf_test_rule() 3851 pd->hdr.icmp->icmp_cksum = pf_cksum_fixup( in pf_test_rule() 3852 pd->hdr.icmp->icmp_cksum, sport, in pf_test_rule() 3854 pd->hdr.icmp->icmp_id = nk->port[1]; in pf_test_rule() 3855 pd->sport = &pd->hdr.icmp->icmp_id; in pf_test_rule() 3857 m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp); in pf_test_rule() [all …]
|