1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 20:01:35 +01:00

RAII'd some code. Everything(hopefully) uses IPv4Address now.

This commit is contained in:
Matias Fontanini
2012-08-27 00:16:56 -03:00
parent 1b08d1af71
commit da8c77c77e
20 changed files with 206 additions and 267 deletions

View File

@@ -141,7 +141,7 @@ TEST_F(ARPTest, Opcode) {
}
TEST_F(ARPTest, Serialize) {
ARP arp1(0x1234, 0xa3f1, hw_addr1, hw_addr2);
ARP arp1("192.168.0.1", "192.168.0.100", hw_addr1, hw_addr2);
PDU::serialization_type buffer = arp1.serialize();