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

222 Commits

Author SHA1 Message Date
Matias Fontanini
80198909eb Fixed endianess issues in several classes. Everything is working on big endian architectures so far. 2012-08-21 00:03:55 -03:00
Matias Fontanini
3ef29f831b Added some Dot11 unit tests. Fixed several bugs in Dot11 and its subclasses. 2012-08-21 00:03:00 -03:00
Matias Fontanini
e83acc92cc No code uses net_to_host_* now. 2012-08-16 23:45:50 -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
68ab7b094a Modified IPv4Address interface and fixed some tests. 2012-08-15 08:36:59 -03:00
Matias Fontanini
ad7936dfbe Fixed bug on TCP checksum calculation. 2012-08-15 08:34:32 -03:00
Matias Fontanini
0014d5e0f7 Done minor modifications on Utils. 2012-08-13 15:28:42 -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
87e9c4051e Refactored Sniffer class and fixed some bugs in HWAddress. 2012-08-10 12:30:41 -03:00
Matias Fontanini
e3ca2fd978 Fixed HWAddress and IPv4Address' constructors from const char*. 2012-08-10 00:22:15 -03:00
Matias Fontanini
55be59ee15 Done some minor fixes. 2012-08-09 23:39:32 -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
29c5a696e5 NetworkInterface class is working. 2012-08-09 09:52:44 -03:00
Matias Fontanini
dd1d1c3c49 Added NetworkInterface class. Needs testing. 2012-08-08 23:43:08 -03:00
Matias Fontanini
1b57563a96 RadioTap and Dot11 now use HWAddress. 2012-08-07 23:20:16 -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
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
66dfcb746b Refactored DNS and UDP class. 2012-08-06 18:59:31 -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
c4a92d2b96 Fixed some bugs, added some tests. 2012-08-02 21:21:10 -03:00
Matias Fontanini
cb81c65640 TCP Options are now implemented using std::vector. 2012-08-02 12:00:56 -03:00
Matias Fontanini
50ce6e0a04 Fixed bug in TCP serialize/constructor from buffer. 2012-08-02 10:57:22 -03:00
Matias Fontanini
9fd3b77796 Removed assert macro call in DNS, replaced it with a throw statement. 2012-08-02 10:57:06 -03:00
Matias Fontanini
0d50ce5b2e Fixed a bug in DNS dname parsing. 2012-07-04 14:45:24 -03:00
Matias Fontanini
ef4594db17 Fixed bug when parsing MX records in DNS. Forging MX records needs to be fixed as well. 2012-07-03 11:58:51 -03:00
Matias Fontanini
0c3372fcbb Removed debug message in utils.cpp. 2012-06-18 11:18:25 -03:00
Matias Fontanini
e4c0d74883 Added Utils::route_entries to retrieve routing table entries. 2012-06-07 11:45:51 -03:00
Matias Fontanini
4c30ebcddd Added missing ipaddress.cpp file. 2012-05-18 20:23:01 -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
ae7e1b3d0d Fixed some bugs in DNS. Added some helper functions. 2012-04-02 17:12:04 -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
a71f7e3fb2 Added methods to retrieve queries/answers in DNS. Not tested yet. 2012-03-30 11:59:36 -03:00
Matias Fontanini
b55bafaedd DNS is working. Constructor from buffer is not implemented yet. 2012-03-30 01:03:36 -03:00
Matias Fontanini
e81d9b7ea7 Started implementing DNS pdu. 2012-03-29 14:00:15 -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
594eabd282 Added option helper functions on DHCP. 2012-03-23 11:25:28 -03:00
Matias Fontanini
e642dfa418 Added Utils::interface_info. 2012-03-23 11:25:14 -03:00
Matias Fontanini
4235feb43e Utils::gateway_from_ip is now working. 2012-03-23 00:59:58 -03:00
Matias Fontanini
0b6b4e9921 Fixed endianness in some DHCP options. 2012-03-23 00:59:35 -03:00
Matias Fontanini
2dc004eceb Modified PacketSender::recv_match_loop timeout handling. 2012-03-22 23:36:23 -03:00
Matias Fontanini
d73f4dd8ab Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2012-03-22 22:43:08 -03:00
Matias Fontanini
67eb7e355f Added Utils::gateway_from_ip function.(not tested yet). 2012-03-22 22:42:37 -03:00
Matias Fontanini
73aed37555 Fixed bug in TCP option parsing. 2012-03-20 20:44:35 -03:00
Matias Fontanini
fa9c260d85 Added Utils::ping_address. Fixed bugs in PacketSender::recv_match_loop. 2012-03-20 12:07:08 -03:00
Matias Fontanini
b6adb7ba8d Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2012-03-19 17:17:42 -03:00
Matias Fontanini
333ec76fea Added promisc flag on Sniffer to start the put interfaces into promiscuous mode. 2012-03-19 17:17:13 -03:00
Matias Fontanini
547a46f542 Fixed bug when using microsecond presition on PacketSender::recv_match_loop. 2012-03-19 17:16:35 -03:00