diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-03-19 13:18:06 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-03-19 13:18:06 -0700 |
commit | 1abee928757ddf89cf2917985f9655957effad7a (patch) | |
tree | d8addb44ad8fef99e4a951094be36a607e375017 | |
parent | c7dffedd2377ee4d75e084224965f599ff5348a0 (diff) | |
download | libnet-1abee928757ddf89cf2917985f9655957effad7a.tar.gz |
ICMPv6 struct is too long, so use length macro (sickmind@lavabit.com)
Struct must contains id/seq for backwards compatibility.
-rw-r--r-- | libnet/src/libnet_build_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnet/src/libnet_build_icmp.c b/libnet/src/libnet_build_icmp.c index e9590d3..deb030d 100644 --- a/libnet/src/libnet_build_icmp.c +++ b/libnet/src/libnet_build_icmp.c @@ -415,7 +415,7 @@ libnet_build_icmpv6_common( return (-1); } - n = sizeof(icmp_hdr) + specific_s + payload_s; + n = LIBNET_ICMPV6_COMMON_H + specific_s + payload_s; p = libnet_pblock_probe(l, ptag, n, pblock_type); |