icmpv6_csum() uses wrong format. It happened to produce correct value for csum.
Signed-off-by: Isaku Yamahata <[email protected]> --- ryu/tests/unit/packet/test_icmpv6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/tests/unit/packet/test_icmpv6.py b/ryu/tests/unit/packet/test_icmpv6.py index 2fe5891..bc447d4 100644 --- a/ryu/tests/unit/packet/test_icmpv6.py +++ b/ryu/tests/unit/packet/test_icmpv6.py @@ -35,8 +35,8 @@ LOG = logging.getLogger(__name__) def icmpv6_csum(prev, buf): - ph = struct.pack('!16s16sBBH', prev.src, prev.dst, 0, prev.nxt, - prev.payload_length) + ph = struct.pack('!16s16sI3xB', prev.src, prev.dst, + prev.payload_length, prev.nxt) h = bytearray(buf) struct.pack_into('!H', h, 2, 0) -- 1.7.10.4 ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
