Subject: | Problem with processing NF_ICMPv6_OPTION_SOURCELINKLAYERADDRESS option |
Date: | Tue, 30 Jun 2015 11:13:49 +0200 |
To: | bug-Net-Frame-Layer-ICMPv6 [...] rt.cpan.org |
From: | Milan Kocian <milon [...] wq.cz> |
hello,
it seems that NF_ICMPv6_OPTION_SOURCELINKLAYERADDRESS option needs
the same hack as NF_ICMPv6_OPTION_TARGETLINKLAYERADDRESS option.
Patch follows.
Best regards and thank you for your work.
--- Layer/ICMPv6/Option.pm 2014-04-09 08:32:22.000000000 +0200
+++ /home/milon/Option.pm 2015-06-30 11:04:08.001671298 +0200
@@ -52,7 +52,7 @@
$self->length($length);
# Dirty hack. Some systems does not set the length correctly
- if ($type == NF_ICMPv6_OPTION_TARGETLINKLAYERADDRESS) {
+ if ($type == NF_ICMPv6_OPTION_TARGETLINKLAYERADDRESS or $type == NF_ICMPv6_OPTION_SOURCELINKLAYERADDRESS) {
$length = 6;
}
--
Milan Kocian