summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authortakahashi.minoru <takahashi.minoru7@gmail.com>2014-04-21 15:22:47 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-04-21 22:22:58 +0900
commitb47fa61dd307e180ed261a43ad85c7b73b982f84 (patch)
tree20a44422d85ad92641167dd1fa139110f71ba4d2 /doc
parent57166dc4853f64c4111e2240c9d5c6eaa64065f6 (diff)
packet lib: ipv6: Fix to calculate AH length
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 <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions