Matias Fontanini
|
2dff95700f
|
Updated copyright notice.
|
2014-07-13 11:04:29 -03:00 |
|
Matias Fontanini
|
201ea885a1
|
Added method in TCP and IP that emplaces an option.
|
2014-06-01 12:55:36 -03:00 |
|
Matias Fontanini
|
112a357726
|
Added PDUOption::to<>. TCP options now use this method when being converted to their appropriate types.
|
2013-12-16 14:11:53 -03:00 |
|
Matias Fontanini
|
a507355e27
|
Added tins_cast as a replacement for dynamic_cast when using it on PDU classes.
|
2013-10-18 09:28:43 -03:00 |
|
Matias Fontanini
|
01b2a9c7b2
|
Modified some examples fixed some doxygen documentation.
|
2013-10-06 23:00:20 -03:00 |
|
Matias Fontanini
|
d7d2dec5cb
|
Done some optimizations on TCP's constructor from buffer.
|
2013-09-15 16:01:00 -03:00 |
|
Matias Fontanini
|
f385e4e975
|
Added a const overload of TCP::get_flag. Added TCP::flags.
|
2013-06-17 21:25:30 -03:00 |
|
Matias Fontanini
|
5064a9255b
|
Fixed BSD notice. Updated AUTHORS file.
|
2013-04-23 20:33:00 -03:00 |
|
Matias Fontanini
|
0f2bc45059
|
Moved definitions inside TINS_IS_CXX11 into header files.
|
2013-04-23 13:04:57 -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
|
d1b64ec48e
|
PDU::matches_response is now const.
|
2013-04-21 20:03:47 -03:00 |
|
Matias Fontanini
|
69968cbc5c
|
Removed deprecated methods/types.
|
2013-04-21 19:52:39 -03:00 |
|
Matias Fontanini
|
3fd1b3d37d
|
Added malformed_packet exception. Every class except Dot11* use it.
|
2013-04-18 00:12:20 -03:00 |
|
Matias Fontanini
|
f4522acd44
|
IP and TCP now calculate checksums always inside write_serialization.
|
2013-04-11 00:57:36 -03:00 |
|
Matias Fontanini
|
1fbef641da
|
TCP options now use PDUOption<>::length_field when it is != from data_size.
|
2013-04-10 18:44:00 -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
|
b32586e739
|
Fixed compilation error on IP and TCP.
|
2013-03-25 15:17:26 -03:00 |
|
Matias Fontanini
|
82ef41dd92
|
IP now fills automatically the sender address when no link layer PDU is present. Made some protocols work when using PacketSender::send_recv.
|
2013-03-25 14:08:59 -03:00 |
|
Matias Fontanini
|
d7dd1e131f
|
Added an overload of add_option that takes an rvalue-ref in IP, TCP, DHCP, ICMPv6 and Dot11.
|
2013-03-24 00:08:53 -03:00 |
|
Matias Fontanini
|
584fe81f04
|
Optimized TCP, IP and PDUOption<>.
|
2013-03-23 13:44:33 -03:00 |
|
Matias Fontanini
|
742276c251
|
libtins compiles and runs under windows. Packets apparently can't be sent yet.
|
2012-12-02 20:25:05 -03:00 |
|
Matias Fontanini
|
8276e7d086
|
Added IPv6 class. It's working, but there's no support for extension headers yet.
|
2012-11-21 22:09:58 -03:00 |
|
Matias Fontanini
|
1c22dab2dc
|
libtins now uses a BSD license.
|
2012-10-07 20:33:45 -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
|
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
|
83ec6e6bad
|
Refactored TCP's interface.
|
2012-09-07 11:56:36 -03:00 |
|
Matias Fontanini
|
832a79a1e1
|
Moved endianness change functions to endianness.h.
|
2012-09-03 23:58:43 -03:00 |
|
Matias Fontanini
|
958edcc74a
|
Added small_uint class.
|
2012-09-02 18:24:59 -03:00 |
|
Matias Fontanini
|
80198909eb
|
Fixed endianess issues in several classes. Everything is working on big endian architectures so far.
|
2012-08-21 00:03:55 -03:00 |
|
Matias Fontanini
|
27f6eeccd4
|
Fixed some bugs in Dot11 and DNS. Most of the code uses host_to_be and be_to_host.
|
2012-08-16 00:34:18 -03:00 |
|
Matias Fontanini
|
892bc0ecd3
|
Started fixing endianess issues.
|
2012-08-15 12:04:13 -03:00 |
|
Matias Fontanini
|
ad7936dfbe
|
Fixed bug on TCP checksum calculation.
|
2012-08-15 08:34:32 -03:00 |
|
Matias Fontanini
|
c5fce38c3a
|
Refactored several classes.
|
2012-08-03 13:08:24 -03:00 |
|
Matias Fontanini
|
cb81c65640
|
TCP Options are now implemented using std::vector.
|
2012-08-02 12:00:56 -03:00 |
|
Matias Fontanini
|
50ce6e0a04
|
Fixed bug in TCP serialize/constructor from buffer.
|
2012-08-02 10:57:22 -03:00 |
|
Matias Fontanini
|
e6ccdcd75e
|
Fixed/added copy constructor to IP/TCP/UDP/ARP/EthernetII PDUs.
|
2012-03-24 01:27:22 -03:00 |
|
Matias Fontanini
|
73aed37555
|
Fixed bug in TCP option parsing.
|
2012-03-20 20:44:35 -03:00 |
|
Matias Fontanini
|
d2f6862b7b
|
Renamed TCP::Options to TCP::Option.
|
2011-09-24 23:00:30 -03:00 |
|
Matias Fontanini
|
7a9fc0f84d
|
Added TCPTest. Fixed some TCP bugs, most of them related to options.
|
2011-09-21 08:46:08 -03:00 |
|
Matias Fontanini
|
abe73f185f
|
Added constants header.
|
2011-09-12 12:01:17 -03:00 |
|
Matias Fontanini
|
b17ee6a6cb
|
Removed copy constructor from several PDUs.
|
2011-09-08 10:18:15 -03:00 |
|
Matias Fontanini
|
a216cf8401
|
Fixed memory leak on TCP's options.
|
2011-09-07 09:52:23 -03:00 |
|
Matias Fontanini
|
7f40e95862
|
Fixed option parsing bug in TCP.
|
2011-09-07 08:31:00 -03:00 |
|
Matias Fontanini
|
3178c217b3
|
Added copy constructor and copy assignment operator to all PDUs.
|
2011-09-03 18:58:57 -03:00 |
|
Matias Fontanini
|
7ccae0c994
|
Fixed exception syntax error..
|
2011-08-24 00:00:24 -03:00 |
|
Matias Fontanini
|
2513488b92
|
TCP now stores options when instantiated from a buffer.
|
2011-08-19 11:40:13 -03:00 |
|
Matias Fontanini
|
3e2168f6fc
|
Added DHCP and BootP constructors from uint8_t buffer. Normalized IP destination and source address getters/setters.
|
2011-08-19 10:13:35 -03:00 |
|
Matias Fontanini
|
18750fe18a
|
Added Sniffer class. Added a constructor to eery PDU subclass which creates an instance of the PDU from a byte array.
|
2011-08-18 20:36:55 -03:00 |
|
Matias Fontanini
|
4dfa4d70eb
|
DHCP is working. Fixed ip checksum problem.
|
2011-08-17 15:12:29 -03:00 |
|