1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-24 11:11:35 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
Matias Fontanini
c42cd0114f Fix compilation warnings on Windows x64. 2015-05-17 17:30:54 -07:00
Matias Fontanini
2dff95700f Updated copyright notice. 2014-07-13 11:04:29 -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
cf19c8758d UDP now calculates the checksum when the transport layer protocol is IPv6. 2013-04-23 23:00:43 -03:00
Matias Fontanini
5064a9255b Fixed BSD notice. Updated AUTHORS file. 2013-04-23 20:33:00 -03:00
Matias Fontanini
bf604339f0 Removed the PDU* parameter in several PDU's constructors. 2013-04-23 20:03:08 -03:00
Matias Fontanini
66ff604580 assert() is only called when TINS_DEBUG is defined. 2013-04-22 18:45:56 -03:00
Matias Fontanini
d1b64ec48e PDU::matches_response is now const. 2013-04-21 20:03:47 -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
30d6a4f2e0 UDP checksum is now calculated always inside write_serialization. 2013-04-12 13:42:11 -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
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
832a79a1e1 Moved endianness change functions to endianness.h. 2012-09-03 23:58:43 -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
66dfcb746b Refactored DNS and UDP class. 2012-08-06 18:59:31 -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
018accc347 Fixed bug in DHCP. 2012-03-15 23:07:34 -03:00
Matias Fontanini
ff21304852 Fixed endianness bug in UDP's getters. 2011-09-15 10:21:23 -03:00
Matias Fontanini
abe73f185f Added constants header. 2011-09-12 12:01:17 -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
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
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
9efee446f0 Added more DHCP options. 2011-08-18 11:04:22 -03:00
Matias Fontanini
c49806603b Added DHCP class. It's now working yet. 2011-08-17 12:16:48 -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
35c1a6e65d Created UDP PDU. Done some documentation on TCP. 2011-08-12 20:22:45 -03:00