1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

Fixed some compilation errors/warnings and bugs when using Big Endian architectures.

This commit is contained in:
Matias Fontanini
2013-09-24 00:34:14 -03:00
parent 9cbac6b044
commit c4e6a7c0d6
24 changed files with 217 additions and 183 deletions

View File

@@ -90,7 +90,7 @@ TEST_F(ICMPTest, Checksum) {
TEST_F(ICMPTest, Gateway) {
ICMP icmp;
icmp.gateway(0x31fdb5cd);
EXPECT_EQ(icmp.gateway(), 0x31fdb5cd);
EXPECT_EQ(icmp.gateway(), 0x31fdb5cdU);
}
TEST_F(ICMPTest, MTU) {
@@ -176,7 +176,7 @@ TEST_F(ICMPTest, SetRedirect) {
icmp.set_redirect(0x3d, 0xf1dc);
EXPECT_EQ(icmp.type(), ICMP::REDIRECT);
EXPECT_EQ(icmp.code(), 0x3d);
EXPECT_EQ(icmp.gateway(), 0xf1dc);
EXPECT_EQ(icmp.gateway(), 0xf1dcU);
}
void ICMPTest::test_equals(const ICMP &icmp1, const ICMP &icmp2) {