Lines Matching refs:icmp6
270 struct icmp6_hdr *icmp6; in icmp6_error() local
383 icmp6 = (struct icmp6_hdr *)(nip6 + 1); in icmp6_error()
384 icmp6->icmp6_type = type; in icmp6_error()
385 icmp6->icmp6_code = code; in icmp6_error()
386 icmp6->icmp6_pptr = htonl((u_int32_t)param); in icmp6_error()
403 icmp6_errmap(const struct icmp6_hdr *icmp6) in icmp6_errmap() argument
406 switch (icmp6->icmp6_type) { in icmp6_errmap()
408 switch (icmp6->icmp6_code) { in icmp6_errmap()
423 switch (icmp6->icmp6_code) { in icmp6_errmap()
432 switch (icmp6->icmp6_code) { in icmp6_errmap()
455 struct icmp6_hdr *icmp6, *nicmp6; in icmp6_input() local
502 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); in icmp6_input()
503 code = icmp6->icmp6_code; in icmp6_input()
507 icmp6->icmp6_type, sum, in icmp6_input()
513 ICMP6STAT_INC2(icp6s_inhist, icmp6->icmp6_type); in icmp6_input()
515 if (icmp6->icmp6_type < ICMP6_INFOMSG_MASK) in icmp6_input()
519 switch (icmp6->icmp6_type) { in icmp6_input()
591 bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr)); in icmp6_input()
729 bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr)); in icmp6_input()
880 icmp6->icmp6_type, ip6_sprintf(ip6bufs, &ip6->ip6_src), in icmp6_input()
883 if (icmp6->icmp6_type < ICMP6_ECHO_REQUEST) { in icmp6_input()
923 struct icmp6_hdr *icmp6; in icmp6_notify_error() local
935 if (m->m_len < off + sizeof(*icmp6) + sizeof(struct ip6_hdr)) { in icmp6_notify_error()
936 m = m_pullup(m, off + sizeof(*icmp6) + sizeof(struct ip6_hdr)); in icmp6_notify_error()
943 icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); in icmp6_notify_error()
944 eip6 = (struct ip6_hdr *)(icmp6 + 1); in icmp6_notify_error()
953 int icmp6type = icmp6->icmp6_type; in icmp6_notify_error()
1072 icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); in icmp6_notify_error()
1082 eip6 = (struct ip6_hdr *)(icmp6 + 1); in icmp6_notify_error()
1108 ip6cp.ip6c_icmp6 = icmp6; in icmp6_notify_error()
1109 ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1); in icmp6_notify_error()
1116 notifymtu = ntohl(icmp6->icmp6_mtu); in icmp6_notify_error()
1137 struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6; in icmp6_mtudisc_update() local
1139 u_int mtu = ntohl(icmp6->icmp6_mtu); in icmp6_mtudisc_update()
1938 struct icmp6_hdr *icmp6; in icmp6_rip6_input() local
1943 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off); in icmp6_rip6_input()
1968 if (ICMP6_FILTER_WILLBLOCK(icmp6->icmp6_type, in icmp6_rip6_input()
2037 struct icmp6_hdr *icmp6; in icmp6_reflect() local
2084 icmp6 = (struct icmp6_hdr *)(ip6 + 1); in icmp6_reflect()
2085 type = icmp6->icmp6_type; /* keep type for statistics */ in icmp6_reflect()
2086 code = icmp6->icmp6_code; /* ditto. */ in icmp6_reflect()
2154 icmp6->icmp6_cksum = 0; in icmp6_reflect()
2155 icmp6->icmp6_cksum = in6_cksum(m, IPPROTO_ICMPV6, in icmp6_reflect()