Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

a Type-0 Routing-header is skipped if Segments Left is set to zero, r…

…egardless of the Hdr-Ext-Len value. (RFC2460 section 4.4)
  • Loading branch information...
commit 2711faa058f716253f34fd39382be745fd1be0c5 1 parent 0754f59
suz authored

Showing 2 changed files with 10 additions and 4 deletions. Show diff stats Hide diff stats

  1. +7 3 CHANGELOG
  2. +3 1 kame/sys/netinet6/route6.c
10 CHANGELOG
... ... @@ -1,11 +1,15 @@
1 1 CHANGELOG for KAME kit
2   -$KAME: CHANGELOG,v 1.2677 2004/11/12 11:18:27 suz Exp $
  2 +$KAME: CHANGELOG,v 1.2678 2004/11/12 11:30:13 suz Exp $
3 3
4 4 <200411>
5 5 2004-11-12 SUZUKI, Shinsuke <suz@crl.hitachi.co.jp>
  6 + * kame/sys/netinet6/route6.c (route6_input): conformance fix;
  7 + a Type-0 Routing-header is skipped if Segments Left is set to
  8 + zero, regardless of the Hdr-Ext-Len value. (RFC2460 section 4.4)
  9 +
  10 +2004-11-12 SUZUKI, Shinsuke <suz@crl.hitachi.co.jp>
6 11 * freebsd5: Upgrade to 5.3-RELEASE
7   - ToDo:
8   - - test ...
  12 + ToDo: - test ...
9 13 - additional features like ALTQ, MIP6, SSM, ...
10 14
11 15 2004-11-08 JINMEI, Tatuya <jinmei@isl.rdc.toshiba.co.jp>
4 kame/sys/netinet6/route6.c
... ... @@ -1,4 +1,4 @@
1   -/* $KAME: route6.c,v 1.51 2004/06/02 05:53:17 itojun Exp $ */
  1 +/* $KAME: route6.c,v 1.52 2004/11/12 11:30:13 suz Exp $ */
2 2
3 3 /*
4 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -111,6 +111,8 @@ route6_input(mp, offp, proto)
111 111 switch (rh->ip6r_type) {
112 112 case IPV6_RTHDR_TYPE_0:
113 113 rhlen = (rh->ip6r_len + 1) << 3;
  114 + if (rh->ip6r_segleft == 0)
  115 + break; /* Final dst. Just ignore the header. */
114 116 #ifndef PULLDOWN_TEST
115 117 /*
116 118 * note on option length:

0 comments on commit 2711faa

Please sign in to comment.
Something went wrong with that request. Please try again.