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

43 Commits

Author SHA1 Message Date
Matias Fontanini
bf604339f0 Removed the PDU* parameter in several PDU's constructors. 2013-04-23 20:03:08 -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
dfc0498b70 DNS, RadioTap and Dot1Q work when using PacketSender::send_recv. 2013-03-26 14:54:24 -03:00
Matias Fontanini
8be0c4c23c Marked PDU::clone_packet as deprecated. 2013-03-24 16:08:09 -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
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
e8151724c4 Removed PDU::clone_packet and renamed PDU::clone_pdu to PDU::clone. 2012-09-11 16:54:14 -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
e945ced307 Modified some file names. 2012-09-10 10:31:00 -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
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
e2223bf406 Fixed some bugs. Added a better dependency system for Makefiles. 2012-08-13 00:29:38 -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
e64eb11f1c HWAddress class is working. EthernetII now uses this classes instead of raw uint8_t* 2012-08-07 16:12:40 -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
e6ccdcd75e Fixed/added copy constructor to IP/TCP/UDP/ARP/EthernetII PDUs. 2012-03-24 01:27:22 -03:00
Matias Fontanini
9c2293b2aa Fixed bug in EthernetII::ADDR_SIZE definition. 2011-09-19 01:00:59 -03:00
Santiago Alessandri
8b7f016278 Added test for EthernetII PDU 2011-09-15 12:01:45 -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
fdcefd2132 Added PDU::clone_pdu. 2011-09-03 00:13:31 -03:00
Matias Fontanini
2510c825cd Fixed/added documentation to several classes. 2011-08-23 21:32:13 -03:00
Matias Fontanini
83476fd195 Normalized EthernetII source and destination addresses getters/setters. 2011-08-19 11:44:04 -03:00
Matias Fontanini
03aa49428c Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-19 10:13:57 -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
Santiago Alessandri
4fa5607fed Fixed merge conflics 2011-08-19 09:43:49 -03:00
Santiago Alessandri
33931365c7 Renamed some names from EthernetII PDU 2011-08-19 09:41:45 -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
0d2b6a507b Documented all functions in header files. 2011-08-16 23:10:22 -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
9734510cbd Added BootP PDU header file. Still needs filling and implementation 2011-08-16 13:54:09 -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
6e801011c2 Added enum to identify PDU type. ARP is being sent but not well implemented 2011-08-15 19:14:31 -03:00