1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 03:31:36 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Matias Fontanini
abaa2bf926 PacketSender now throws on error. Fixed the documentation on several header files. 2012-10-19 12:01:34 -03:00
Matias Fontanini
73577c744a Every test now pass on big endian architectures. Ported about half of the library to windows as well. 2012-10-08 21:14:57 -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
16a81c0589 Fixed bugs on IP+big endian architecture. 2012-10-03 00:35:16 -03:00
Matias Fontanini
7cbd32361a Modified some PacketSender and BaseSniffer functions to take references instead of pointers. 2012-09-11 08:51:25 -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
9981819b71 Added PacketWriter class. 2012-09-06 14:18:07 -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
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
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
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
e2ad917549 Fixed bugs in IP and DNS. 2012-08-04 18:46:22 -03:00
Matias Fontanini
c5fce38c3a Refactored several classes. 2012-08-03 13:08:24 -03:00
Matias Fontanini
08f8521ae7 Added IPv4Address class. 2012-05-03 12:03:26 -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
21c864afb0 Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2012-03-06 08:31:22 -03:00
Matias Fontanini
53dfad8bf2 Done minor modifications. 2012-03-06 08:31:10 -03:00
Santiago Alessandri
a732d68e83 Fixed warnings in ip.cpp 2012-03-05 09:28:39 -03:00
Matias Fontanini
8f74ddbc30 Added IPTest. Fixed some IP bugs. 2011-09-24 22:59:58 -03:00
Santiago Alessandri
9e98e2e454 Started utils test. cChanged IP format 2011-09-22 22:53:09 -03:00
Matias Fontanini
4d8fb5a4e5 Modified IP, ARP, ICMP and EthernetII's clone_packet. 2011-09-15 09:17:35 -03:00
Matias Fontanini
abe73f185f Added constants header. 2011-09-12 12:01:17 -03:00
Matias Fontanini
753378cb38 Fixed some leak or uninitialized memory usage bugs. 2011-09-10 20:05:41 -03:00
Matias Fontanini
f30f404632 Moved PDU::pseudoheader_checksum and PDU::do_checksum to Utils namespace. 2011-09-07 09:52:58 -03:00
Matias Fontanini
e13076158f Done minor modifications on IP. 2011-09-06 11:42:58 -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
fdcefd2132 Added PDU::clone_pdu. 2011-09-03 00:13:31 -03:00
Matias Fontanini
7ccae0c994 Fixed exception syntax error.. 2011-08-24 00:00:24 -03:00
Santiago Alessandri
dbd2acc040 Added parsing of options to IP 2011-08-19 11:23:38 -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
Santiago Alessandri
4532d8d236 Fixed IP PDU Options leaks. 2011-08-18 10:26:42 -03:00
Matias Fontanini
24e314283f Added some helper functions to set options to DHCP PDU. Added LGPL notice to dhcp.cpp 2011-08-17 16:20:02 -03:00
Matias Fontanini
4dfa4d70eb DHCP is working. Fixed ip checksum problem. 2011-08-17 15:12:29 -03:00
Santiago Alessandri
b844eb84c8 Fixed endianess in IP PDU. Getters and setters use little endian 2011-08-17 10:04:08 -03:00
Santiago Alessandri
b76c9d0525 Working ethernet II PDU. Fixed bugs in IP and added checksum calculation. Added layer2 sending to PacketSender 2011-08-15 18:16:48 -03:00
Matias Fontanini
5c412208f9 Added recv mechanism on PacketSender. 2011-08-15 12:39:46 -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
Santiago Alessandri
f621cbc724 Added options to IP PDU 2011-08-12 12:01:58 -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
Matias F
424d9c6476 Added Utils::resolve_ip. IP pdu now uses this function to resolve ips. 2011-08-11 10:40:06 -03:00
Santiago Alessandri
f9445b05b6 Updated IP, PDU and PacketSender so as to send forged ip packets successfully 2011-08-11 09:35:23 -03:00