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

Fix tests that failed on Windows.

This commit is contained in:
Matias Fontanini
2015-04-25 17:05:36 -07:00
parent e64e0ce27b
commit ae503523e4
4 changed files with 42 additions and 45 deletions

View File

@@ -218,9 +218,8 @@ TEST_F(ICMPv6Test, PrefixInformation) {
TEST_F(ICMPv6Test, RedirectHeader) {
ICMPv6 icmp;
IP ip = IP("127.0.0.1") / TCP(22);
PDU::serialization_type buffer = ip.serialize();
buffer.insert(buffer.begin(), 6, 0);
EthernetII eth = EthernetII() / IP("8.8.8.8", "192.168.0.100") / TCP(22, 26);
PDU::serialization_type buffer = eth.serialize();
icmp.redirect_header(buffer);
EXPECT_EQ(buffer, icmp.redirect_header());
}