Bug 1742 - IPv6 HbH and Dst Extension Header size is not correctly calculated
authorFrancisco Javier S?nchez-Roselly <fnavarro@ujaen.es>
Mon, 05 Aug 2013 19:19:43 +0200
changeset 10112 fa446d420a4a
parent 10111 910fb5394e95
child 10113 61d35f18227e
Bug 1742 - IPv6 HbH and Dst Extension Header size is not correctly calculated
RELEASE_NOTES
src/internet/model/ipv6-extension-header.cc
--- a/RELEASE_NOTES	Sat Aug 03 07:56:38 2013 -0700
+++ b/RELEASE_NOTES	Mon Aug 05 19:19:43 2013 +0200
@@ -63,6 +63,7 @@
 - Bug 1720 - IPv6 Fragmentation cause crashes
 - Bug 1727 - Ping6 should use a proper source address
 - Bug 1731 - lte-phy-error-model passes unexpectedly
+- Bug 1742 - IPv6 HbH and Dst Extension Header size is not correctly calculated
 
 Known issues
 ------------
--- a/src/internet/model/ipv6-extension-header.cc	Sat Aug 03 07:56:38 2013 -0700
+++ b/src/internet/model/ipv6-extension-header.cc	Mon Aug 05 19:19:43 2013 +0200
@@ -239,7 +239,7 @@
   Buffer::Iterator i = start;
 
   i.WriteU8 (GetNextHeader ());
-  i.WriteU8 ((GetLength () >> 3) - 1);
+  i.WriteU8 ((GetSerializedSize () >> 3) - 1);
   OptionField::Serialize (i);
 }
 
@@ -294,8 +294,7 @@
   Buffer::Iterator i = start;
 
   i.WriteU8 (GetNextHeader ());
-  i.WriteU8 ((GetLength () >> 3) - 1);
-
+  i.WriteU8 ((GetSerializedSize () >> 3) - 1);
   OptionField::Serialize (i);
 }