Lines Matching defs:icmp6

31  *	$KAME: icmp6.c,v 1.211 2001/04/04 05:56:20 itojun Exp $
101 #include <netinet/icmp6.h>
119 "ICMPv6 statistics (struct icmp6stat, netinet/icmp6.h)");
267 struct icmp6_hdr *icmp6;
301 * - the Parameter Problem Message that can be allowed an icmp6 error
344 * informational) we must not send icmp6 error.
380 icmp6 = (struct icmp6_hdr *)(nip6 + 1);
381 icmp6->icmp6_type = type;
382 icmp6->icmp6_code = code;
383 icmp6->icmp6_pptr = htonl((u_int32_t)param);
400 icmp6_errmap(const struct icmp6_hdr *icmp6)
403 switch (icmp6->icmp6_type) {
405 switch (icmp6->icmp6_code) {
420 switch (icmp6->icmp6_code) {
429 switch (icmp6->icmp6_code) {
452 struct icmp6_hdr *icmp6, *nicmp6;
471 * Locate icmp6 structure in mbuf, and check
499 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
500 code = icmp6->icmp6_code;
504 icmp6->icmp6_type, sum,
510 ICMP6STAT_INC2(icp6s_inhist, icmp6->icmp6_type);
512 if (icmp6->icmp6_type < ICMP6_INFOMSG_MASK)
516 switch (icmp6->icmp6_type) {
588 bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr));
726 bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr));
877 icmp6->icmp6_type, ip6_sprintf(ip6bufs, &ip6->ip6_src),
880 if (icmp6->icmp6_type < ICMP6_ECHO_REQUEST) {
920 struct icmp6_hdr *icmp6;
932 if (m->m_len < off + sizeof(*icmp6) + sizeof(struct ip6_hdr)) {
933 m = m_pullup(m, off + sizeof(*icmp6) + sizeof(struct ip6_hdr));
940 icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
941 eip6 = (struct ip6_hdr *)(icmp6 + 1);
950 int icmp6type = icmp6->icmp6_type;
1069 icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
1079 eip6 = (struct ip6_hdr *)(icmp6 + 1);
1105 ip6cp.ip6c_icmp6 = icmp6;
1106 ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1);
1113 notifymtu = ntohl(icmp6->icmp6_mtu);
1134 struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6;
1136 u_int mtu = ntohl(icmp6->icmp6_mtu);
1935 struct icmp6_hdr *icmp6;
1940 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
1957 if (ICMP6_FILTER_WILLBLOCK(icmp6->icmp6_type,
2019 * OFF points to the icmp6 header, counted from the top of the mbuf.
2026 struct icmp6_hdr *icmp6;
2073 icmp6 = (struct icmp6_hdr *)(ip6 + 1);
2074 type = icmp6->icmp6_type; /* keep type for statistics */
2075 code = icmp6->icmp6_code; /* ditto. */
2137 icmp6->icmp6_cksum = 0;
2138 icmp6->icmp6_cksum = in6_cksum(m, IPPROTO_ICMPV6,
2187 /* XXX if we are router, we don't update route by icmp6 redirect */
2236 /* ip6->ip6_src must be equal to gw for icmp6->icmp6_reddst */
2316 "(if %d, icmp6 packet %d): %s\n",
2392 /* if we are not router, we don't send icmp6 redirect */
2548 * compute the maximum size for icmp6 redirect header option.
2856 * Returns 0 if it is okay to send the icmp6 packet.
2857 * Returns 1 if the router SHOULD NOT send this icmp6 packet due to rate