Skip to content

Commit

Permalink
- With ICMPv4 Type 3 (Destination unreachable) Code 2 (protocol unrea…
Browse files Browse the repository at this point in the history
…chable)

  to ICMPv6 Type 4 (Parameter problem) Code 1 (Next header) translation,
  problem pointer points at the inner IPv6 Next header field.
  According to RFC2765 3.3.
  • Loading branch information
fujisawa committed Apr 18, 2002
1 parent d2e71e3 commit 42d4316
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kame/sys/netinet6/natpt_trans.c
@@ -1,4 +1,4 @@
/* $KAME: natpt_trans.c,v 1.96 2002/04/18 06:03:57 fujisawa Exp $ */
/* $KAME: natpt_trans.c,v 1.97 2002/04/18 15:28:38 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 and 2001 WIDE Project.
Expand Down Expand Up @@ -991,9 +991,10 @@ natpt_icmp4Unreach(struct pcv *cv4, struct pcv *cv6, struct pAddr *pad)
icmp6->icmp6_code = ICMP6_DST_UNREACH_NOROUTE;
break;

case ICMP_UNREACH_PROTOCOL: /* do more */
case ICMP_UNREACH_PROTOCOL:
icmp6->icmp6_type = ICMP6_PARAM_PROB;
icmp6->icmp6_code = ICMP6_PARAMPROB_NEXTHEADER; /* xxx */
icmp6->icmp6_code = ICMP6_PARAMPROB_NEXTHEADER;
icmp6->icmp6_pptr = htonl(6); /* point to the IPv6 Next Header field. */
break;

case ICMP_UNREACH_PORT:
Expand Down

0 comments on commit 42d4316

Please sign in to comment.