1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Fixed broken strict-aliasing rules on ICMPv6.

This commit is contained in:
Matias Fontanini
2014-01-15 19:56:58 -03:00
parent 52078cc567
commit 17ceba6064
2 changed files with 22 additions and 6 deletions

View File

@@ -216,7 +216,7 @@ TEST_F(ICMPv6Test, RedirectHeader) {
TEST_F(ICMPv6Test, MTU) {
ICMPv6 icmp;
ICMPv6::mtu_type data(0, 0x9a8df7);
ICMPv6::mtu_type data(0x1234, 0x9a8df7);
icmp.mtu(data);
EXPECT_EQ(data, icmp.mtu());
}