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

29 Commits

Author SHA1 Message Date
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
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
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
c4a92d2b96 Fixed some bugs, added some tests. 2012-08-02 21:21:10 -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
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
44dbdbb116 DNS pdu forging and sniffing is working. Copy constructor/assignment operator are still pending. 2012-03-30 21:42:43 -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
7bc143e290 Fixed endiannes buf in ARP. 2011-09-15 11:41:34 -03:00
Matias Fontanini
4d8fb5a4e5 Modified IP, ARP, ICMP and EthernetII's clone_packet. 2011-09-15 09:17:35 -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
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
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