Searched refs:icmp6_type (Results 1 – 15 of 15) sorted by relevance
/openbsd/sys/netinet6/ |
H A D | nd6_rtr.c | 67 nd6_rtr_cache(struct mbuf *m, int off, int icmp6len, int icmp6_type) in nd6_rtr_cache() argument 80 KASSERT(icmp6_type == ND_ROUTER_SOLICIT || icmp6_type == in nd6_rtr_cache() 94 switch (icmp6_type) { in nd6_rtr_cache() 161 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, icmp6_type, 0, in nd6_rtr_cache() 170 icmp6stat_inc(icmp6_type == ND_ROUTER_SOLICIT ? icp6s_badrs : in nd6_rtr_cache()
|
H A D | icmp6.c | 292 if (icp->icmp6_type < ICMP6_ECHO_REQUEST || in icmp6_do_error() 293 icp->icmp6_type == ND_REDIRECT) { in icmp6_do_error() 343 icmp6->icmp6_type = type; in icmp6_do_error() 424 icmp6->icmp6_type, sum, in icmp6_input() 432 switch (icmp6->icmp6_type) { in icmp6_input() 458 if (icmp6->icmp6_type == ICMP6_ECHO_REQUEST && in icmp6_input() 469 switch (icmp6->icmp6_type) { in icmp6_input() 604 nicmp6->icmp6_type = ICMP6_ECHO_REPLY; in icmp6_input() 664 icmp6->icmp6_type); in icmp6_input() 728 icmp6->icmp6_type, in icmp6_input() [all …]
|
H A D | raw_ip6.c | 154 type = icmp6->icmp6_type; in rip6_input() 438 type = icmp6->icmp6_type; in rip6_output()
|
/openbsd/sys/netinet/ |
H A D | icmp6.h | 71 u_int8_t icmp6_type; /* type field */ member 168 #define mld_type mld_icmp6_hdr.icmp6_type 183 #define nd_rs_type nd_rs_hdr.icmp6_type 195 #define nd_ra_type nd_ra_hdr.icmp6_type 218 #define nd_ns_type nd_ns_hdr.icmp6_type 229 #define nd_na_type nd_na_hdr.icmp6_type 244 #define nd_rd_type nd_rd_hdr.icmp6_type 340 #define ni_type icmp6_ni_hdr.icmp6_type 387 #define rr_type rr_hdr.icmp6_type
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-icmp6.c | 157 switch (dp->icmp6_type) { in icmp6_print() 256 printf("icmp6: echo %s", dp->icmp6_type == ICMP6_ECHO_REQUEST ? in icmp6_print() 493 printf("icmp6: type-#%d", dp->icmp6_type); in icmp6_print() 497 if (TTEST2(dp->icmp6_type, length)) { in icmp6_print()
|
/openbsd/sbin/pfctl/ |
H A D | pfctl_parser.c | 114 static const struct icmptypeent icmp6_type[] = { variable 239 for (i = 0; i < nitems(icmp6_type); i++) { in geticmptypebynumber() 240 if (type == icmp6_type[i].type) in geticmptypebynumber() 241 return (&icmp6_type[i]); in geticmptypebynumber() 258 for (i = 0; i < nitems(icmp6_type); i++) { in geticmptypebyname() 259 if (!strcmp(w, icmp6_type[i].name)) in geticmptypebyname() 260 return (&icmp6_type[i]); in geticmptypebyname()
|
/openbsd/usr.sbin/rad/ |
H A D | engine.c | 462 switch (hdr->icmp6_type) { in parse_ra_rs() 471 hdr->icmp6_type, inet_ntop(AF_INET6, &ra_rs->from.sin6_addr, in parse_ra_rs()
|
H A D | frontend.c | 630 if (icmp6_hdr->icmp6_type != ND_ROUTER_ADVERT && in icmp6_receive() 631 icmp6_hdr->icmp6_type != ND_ROUTER_SOLICIT) in icmp6_receive()
|
/openbsd/sbin/ping/ |
H A D | ping.c | 1127 icp6->icmp6_type = ICMP6_ECHO_REQUEST; in pinger() 1246 if (icp6->icmp6_type == ICMP6_ECHO_REPLY) { in pr_pack() 2035 switch (icp->icmp6_type) { in pr_icmph6() 2144 printf("Bad ICMP type: %d", icp->icmp6_type); in pr_icmph6()
|
/openbsd/usr.sbin/relayd/ |
H A D | check_icmp.c | 187 icp6->icmp6_type = ICMP6_ECHO_REQUEST; in send_icmp()
|
/openbsd/usr.sbin/traceroute/ |
H A D | worker.c | 390 icp->icmp6_type = ICMP6_ECHO_REQUEST; in build_probe6() 616 type = icp->icmp6_type; in packet_ok6()
|
/openbsd/sbin/slaacd/ |
H A D | frontend.c | 950 if (icmp6_hdr->icmp6_type != ND_ROUTER_ADVERT) in icmp6_receive()
|
H A D | engine.c | 1404 if (icmp6_hdr->icmp6_type != ND_ROUTER_ADVERT) in parse_ra()
|
/openbsd/sys/net/ |
H A D | pf.c | 897 switch (pd->hdr.icmp6.icmp6_type) { in pf_state_key_addr_setup() 3033 type = icmp6->icmp6_type; in pf_translate_icmp_af() 3110 pf_patch_8(pd, &icmp6->icmp6_type, type, PF_HI); in pf_translate_icmp_af() 4411 ctx.icmptype = pd->hdr.icmp6.icmp6_type; in pf_test_rule() 5608 icmptype = pd->hdr.icmp6.icmp6_type; in pf_test_state_icmp() 6241 pf_icmp_mapping(&pd2, iih->icmp6_type, in pf_test_state_icmp() 7216 switch (icmp6.icmp6_type) { in pf_walk_header6() 7435 switch (pd->hdr.icmp6.icmp6_type) { in pf_setup_pdesc()
|
/openbsd/usr.sbin/bgpd/ |
H A D | parse.y | 5925 static const struct icmptypeent icmp6_type[] = { variable 6015 for (i = 0; i < nitems(icmp6_type); i++) { in geticmptypebyname() 6016 if (!strcmp(w, icmp6_type[i].name)) in geticmptypebyname() 6017 return (icmp6_type[i].type); in geticmptypebyname()
|