On Mon, 21 Apr 2014 15:22:47 +0900
"takahashi.minoru" <[email protected]> wrote:

> RFC2402 says:
> 
>     All IPv6 extension headers, as per RFC 1883, encode the "Hdr Ext Len" 
> field by first
>     subtracting 1 (64-bit word) from the header length (measured in 64-bit 
> words).
>     AH is an IPv6 extension header.  However, since its length is measured in 
> 32-bit words,
>     the "Payload Length" is calculated by subtracting 2 (32 bit words).
> 
> This patch fixes as follows:
> 
>     return (int(size) - 1) * 8 ->
>     return (int(size) + 2) * 4
>                       ^ ^    ^
> And, this patch also fixes a default argument of length.
> 
> Signed-off-by: TAKAHASHI Minoru <[email protected]>
> ---
>  ryu/lib/packet/ipv6.py             |    4 ++--
>  ryu/tests/unit/packet/test_ipv6.py |   11 +++++++++--
>  2 files changed, 11 insertions(+), 4 deletions(-)

Looks good. Applied, thanks.

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to