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

56 Commits

Author SHA1 Message Date
Matias Fontanini
fa4a074e2f Add missing RadioTap fields. 2015-03-04 21:27:47 -08:00
Ulf Wetzker
93a46366a0 Fixed type for _dbm_signal and _dbm_noise 2015-02-09 14:30:34 +01:00
Ulf Wetzker
d640eebb99 Add Exception for fields that are not present in RadioTap frames. 2015-02-09 13:23:03 +01:00
Matias Fontanini
3a38d36a60 Fixed invalid parsing of RadioTap ext flag field. 2014-11-06 21:44:59 -08:00
Christian Hammerl
52b0ee7ceb fix armv5 alignment issues 2014-07-31 15:49:52 +00:00
Matias Fontanini
2dff95700f Updated copyright notice. 2014-07-13 11:04:29 -03:00
Matias Fontanini
0acf388277 Removed 'no newline at end of file' warnings. 2014-02-10 18:21:46 -03:00
Matias Fontanini
9962381fc7 Added the --disable-dot11 configure switch. 2013-11-09 14:41:08 -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
c4e6a7c0d6 Fixed some compilation errors/warnings and bugs when using Big Endian architectures. 2013-09-24 00:34:14 -03:00
Matias Fontanini
2414edd1e7 Fixed a bug in PPI and Dot1Q triggered when constructing from buffer/serializing. Done some documentation fixes. 2013-09-22 19:37:02 -03:00
Matias Fontanini
de0ec914cc Fixed bug in RadioTap. The flags field was being used even if it was not present. 2013-09-04 16:34:24 -03:00
Matias Fontanini
ec8374be60 Split dot11.h and dot11.cpp into several files. 2013-05-31 22:16:56 -03:00
Matias Fontanini
ddf47365c1 RadioTap now calculates its size always while serializing. Added 2 missing RadioTap fields as well. 2013-05-30 18:14:11 -03:00
Piotr Haber
28c8d393d6 do not parse Dot11 frame if FCS is wrong
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
2013-05-23 17:54:17 -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
fdfb8b0dea Fixed compilation issues triggered in GNU/kFreeBSD. 2013-04-22 23:48:53 -03:00
Matias Fontanini
66ff604580 assert() is only called when TINS_DEBUG is defined. 2013-04-22 18:45:56 -03:00
Matias Fontanini
7da8de6ea7 Added another test case for RadioTap's constructor from buffer. 2013-04-22 12:53:01 -03:00
Matias Fontanini
d1b64ec48e PDU::matches_response is now const. 2013-04-21 20:03:47 -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
804ea411fc Fixed bug in RadioTap when using FCS at the end. 2013-04-16 13:45:30 -03:00
Piotr Haber
9bcfd07896 fix radiotap header parsing
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
2013-04-16 13:37:31 -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
02a53da361 Fixed bug triggered when parsing RadioTap in BE architectures. 2013-03-15 15:13:00 -03:00
Matias Fontanini
f86f727810 Added RadioTap::iface. 2013-02-06 14:10:21 -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
6d1e96866e libtins now compiles on windows. A couple of features were disabled and need to be fixed though. 2012-12-02 00:45:10 -03:00
Matias Fontanini
de82dc2322 Link layer protocols can now be sent on BSD. 2012-11-28 16:50:47 -03:00
Matias Fontanini
6696c1b284 Ported almost everything to BSD. Utils::route_entries and sending link layer PDUs still don't work. 2012-11-28 00:11:42 -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
b7ea989530 Added several tests for EAPOL. Now both RadioTap and EAPOL work on big endian architectures. 2012-10-18 23:22:42 -03:00
Matias Fontanini
f4d37f5a51 Fixed some parsing bugs in RadioTap. 2012-10-17 23:33:05 -03:00
Matias Fontanini
53efc67f6f Added some unit tests for RadioTap. 2012-10-17 18:44:46 -03:00
Matias Fontanini
a0f5d26987 The FCS-at-end flag was being ignored in RadioTap. Added beacon display example. 2012-10-15 23:53:36 -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
7cbd32361a Modified some PacketSender and BaseSniffer functions to take references instead of pointers. 2012-09-11 08:51:25 -03:00
Matias Fontanini
9981819b71 Added PacketWriter class. 2012-09-06 14:18:07 -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
e83acc92cc No code uses net_to_host_* now. 2012-08-16 23:45:50 -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
1b57563a96 RadioTap and Dot11 now use HWAddress. 2012-08-07 23:20:16 -03:00
Matias Fontanini
69c018ce68 Fixed some endianess bugs in RadioTap. 2011-09-06 11:44:45 -03:00
Matias Fontanini
477a757f5a Renamed IEEE802_11 and all subclasses to Dot11 2011-09-04 10:19:58 -03:00
Matias Fontanini
840b08ef63 Added flag enums to RadioTap. 2011-08-27 18:07:38 -03:00
Matias Fontanini
9e56c3681e Changed IEEE802_11::dst_addr, src_addr and filter_addr to addr1, addr2 and addr3. 2011-08-25 21:39:32 -03:00