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

39 Commits

Author SHA1 Message Date
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
c7c56a610c Done some -pedantic modifications. 2013-01-24 13:44:30 -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
1c22dab2dc libtins now uses a BSD license. 2012-10-07 20:33:45 -03:00
Matias Fontanini
e8151724c4 Removed PDU::clone_packet and renamed PDU::clone_pdu to PDU::clone. 2012-09-11 16:54:14 -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
3cb6603151 Improved compile time using forward declarations and removing useless includes. 2012-09-05 11:59:46 -03:00
Matias Fontanini
2aa4e10b91 Added TCPStreamFollower class. It seems to be working right. 2012-09-04 23:20:32 -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
892bc0ecd3 Started fixing endianess issues. 2012-08-15 12:04:13 -03:00
Matias Fontanini
e2223bf406 Fixed some bugs. Added a better dependency system for Makefiles. 2012-08-13 00:29:38 -03:00
Matias Fontanini
4af3d3c697 Added a constant static value to each PDU indicating the corresponding PDU::PDUType flag. 2012-08-06 22:29:41 -03:00
Matias Fontanini
c5fce38c3a Refactored several classes. 2012-08-03 13:08:24 -03:00
Matias Fontanini
383deb8641 Modified header guards so they don't use reserved names containing double underscores. 2012-08-02 16:00:56 -03:00
Matias Fontanini
cb81c65640 TCP Options are now implemented using std::vector. 2012-08-02 12:00:56 -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
a216cf8401 Fixed memory leak on TCP's options. 2011-09-07 09:52:23 -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
2510c825cd Fixed/added documentation to several classes. 2011-08-23 21:32:13 -03:00
Matias Fontanini
2513488b92 TCP now stores options when instantiated from a buffer. 2011-08-19 11:40:13 -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
Santiago Alessandri
00a34dc20d Fixed endianess in TCP PDU. Added getters and setters. Getters and Setters use little endian 2011-08-17 11:15:51 -03:00
Matias Fontanini
e587d18796 Documented many header files. Done some minor code refactoring over PDU::clone_packet. 2011-08-16 20:53:55 -03:00
Santiago Alessandri
6e801011c2 Added enum to identify PDU type. ARP is being sent but not well implemented 2011-08-15 19:14:31 -03:00
Matias
1215ae135c Added ICMP class. It was tested and it's working. 2011-08-14 11:17:38 -03:00
Matias
759139da3f Added RawPDU class. Removed payload member from TCP and UDP. They're not represented by RawPDUs. 2011-08-13 17:22:01 -03:00
Matias
398ba31111 UDP PDU is now working. 2011-08-12 21:17:44 -03:00
Matias F
81bcdeb402 Solved conflicts. 2011-08-12 20:24:51 -03:00
Matias F
35c1a6e65d Created UDP PDU. Done some documentation on TCP. 2011-08-12 20:22:45 -03:00
Matias
2cdf0f6b29 Fixed TCP checksum. Documented pdu.h. 2011-08-12 20:17:21 -03:00
Matias F
584f20155d Documented the TCP PDU header. 2011-08-12 13:23:47 -03:00
matias
46c00acbc6 Added TCP options 2011-08-12 08:14:29 -03:00
Matias
6288574f85 Added LGPL notice. TCP pdu is working. 2011-08-11 17:27:15 -03:00
Matias F
1c2b255747 Added TCP pdu. 2011-08-11 13:50:30 -03:00