Matias Fontanini
17da10d76e
Add extract_metadata to main PDU classes
2016-02-20 22:19:12 -08:00
Matias Fontanini
fb4e5086fd
Update copyright notice
2016-01-31 20:03:49 -08:00
Matias Fontanini
d84f10cf08
Code cleanup and use same syntax on the entire project
...
Initial code cleanup
More code cleanup
Cleanup more code
Cleanup Dot11 code
Fix OSX build issue
Cleanup examples
Fix ref and pointer declaration syntax
Fix braces
2016-01-09 10:01:58 -08:00
Matias Fontanini
02e2b278de
Add OutputMemoryStream and port most classes to use it
2015-12-26 06:30:00 -08:00
Matias Fontanini
13c05fbdb1
Add input memory stream class and port some PDUs to use it
2015-12-24 15:21:07 -08:00
Matias Fontanini
2dff95700f
Updated copyright notice.
2014-07-13 11:04:29 -03:00
Santiago Alessandri
02d3a14083
Fixed issue related with EthernetII protocol.
...
The Ethernet II protocol forces a minimum length of 60 bytes. It is necessary to add a trailer for padding of null-bytes when the inner_pdu's size does not meet the requirement.
Also EthernetII packets received were being incorrectly parsed due to the existance of this padding.
The issue has been solved and several tests were added. All tests successfully pass.
2013-07-12 20:06:55 -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
69968cbc5c
Removed deprecated methods/types.
2013-04-21 19:52:39 -03:00
Matias Fontanini
97f049580b
Link layer PDUs no longer contain a NetworkInterface.
2013-04-21 18:50:08 -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
8be0c4c23c
Marked PDU::clone_packet as deprecated.
2013-03-24 16:08:09 -03:00
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
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
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
da8c77c77e
RAII'd some code. Everything(hopefully) uses IPv4Address now.
2012-08-27 00:16:56 -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
91af0f9cc2
EthernetII, IEEE802_3 and Dot11(and subclasses) now use NetworkInterface and HWAddress.
2012-08-09 12:00:29 -03:00
Matias Fontanini
ad11d3c244
ARP now uses HWAddress. Utils have been updated as well.
2012-08-07 17:28:46 -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
811e194148
Modified classes to use the IPv4Address class.
2012-05-15 11:19:25 -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
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
b17ee6a6cb
Removed copy constructor from several PDUs.
2011-09-08 10:18:15 -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
d6ae9d498d
Added some arguments to ARP::ARP.
2011-08-18 15:43:53 -03:00
Santiago Alessandri
305a0a6b14
Added some getters and setter to ARP and refactored some methods
2011-08-18 10:58:20 -03:00
Santiago Alessandri
9a4c847e6b
Fixed endianess in ARP PDU. Getters and Setters use little endian
2011-08-17 10:11:41 -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
Matias Fontanini
9b897db21f
Utils::resolve_hwaddr is not working.
2011-08-16 18:11:47 -03:00
Santiago Alessandri
cb647d1642
Added wrappers to build ARP requests and replies. Defined BROADCAST in EthernetII
2011-08-16 13:21:25 -03:00
matias
a489eab8b9
Added PacketSender::recv_l2. Ethernet packets can now expect a response packet. ARP response is working now.
2011-08-16 00:36:59 -03:00
Santiago Alessandri
5b851a9142
Added getters and setters to ARP PDU
2011-08-15 20:51:06 -03:00
Santiago Alessandri
cc7f1f6761
Added license to some files.
2011-08-15 20:08:23 -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 Fontanini
835229f104
Added ARP class. It's not working yet.
2011-08-15 18:17:28 -03:00