Matias Fontanini
a7a63483df
Fix gtest compilation issues on OSX.
2015-04-25 19:39:22 -07:00
Matias Fontanini
ae135bb035
Fixed IP total length zero bug.
2014-11-25 22:49:05 -08:00
Matias Fontanini
2ddec368c3
Fixed bug on IP when serializing fragmented packets.
...
The original protocol id was being overwritten with 0xff(unknown)
when the inner_pdu was a RawPDU, even if it was just a fragment of
a transport layer PDU. The protocol id is now kept if the packet
is fragmented.
2013-12-04 10:56:48 -03:00
Matias Fontanini
a6655191d4
Fragmented IP packet's inner_pdu PDUs are not decoded now.
2013-11-16 19:40:08 -03:00
Matias Fontanini
01b2a9c7b2
Modified some examples fixed some doxygen documentation.
2013-10-06 23:00:20 -03:00
Matias Fontanini
c4e6a7c0d6
Fixed some compilation errors/warnings and bugs when using Big Endian architectures.
2013-09-24 00:34:14 -03:00
Matias Fontanini
9be4f0ca37
Removed IP, UDP and IP checksum setters. Added some checksum tests.
2013-04-22 20:06:35 -03:00
Matias Fontanini
69968cbc5c
Removed deprecated methods/types.
2013-04-21 19:52:39 -03:00
Matias Fontanini
30d6a4f2e0
UDP checksum is now calculated always inside write_serialization.
2013-04-12 13:42:11 -03:00
Matias Fontanini
ae1e1c2ce2
Modified some protocols' internal type names.
2013-04-09 15:40:58 -03:00
Matias Fontanini
20054e6c73
Several classes now use PDUOption::length_field instead of data_size.
2013-04-08 11:58:12 -03:00
Matias Fontanini
0f27b04a92
Fixed lots of warnings in test cases, due to narrowing conversions.
2013-03-18 11:32:34 -03:00
Matias Fontanini
153bcecc35
Removed the useless PDU::flag member. Added a PDU concatenation operator.
2012-10-07 18:51:06 -03:00
Matias Fontanini
e945ced307
Modified some file names.
2012-09-10 10:31:00 -03:00
Matias Fontanini
c49fbe9929
Added a generic PDUOption class. TCP, IP, DHCP and Dot11* now use this class to store their options.
2012-09-10 00:11:54 -03:00
Matias Fontanini
da8c77c77e
RAII'd some code. Everything(hopefully) uses IPv4Address now.
2012-08-27 00:16:56 -03:00
Matias Fontanini
1b08d1af71
Added some serialization tests to every PDU.
2012-08-26 12:50:30 -03:00
Matias Fontanini
68ab7b094a
Modified IPv4Address interface and fixed some tests.
2012-08-15 08:36:59 -03:00
Matias Fontanini
c5fce38c3a
Refactored several classes.
2012-08-03 13:08:24 -03:00
Matias Fontanini
c4a92d2b96
Fixed some bugs, added some tests.
2012-08-02 21:21:10 -03:00
Matias Fontanini
08f8521ae7
Added IPv4Address class.
2012-05-03 12:03:26 -03:00
Matias Fontanini
53dfad8bf2
Done minor modifications.
2012-03-06 08:31:10 -03:00
Matias Fontanini
8f74ddbc30
Added IPTest. Fixed some IP bugs.
2011-09-24 22:59:58 -03:00