Matias Fontanini
147c1a4315
Don't allow receiving l2 packets on windows.
2015-04-18 18:56:16 -07:00
Matias Fontanini
2fa4c2ade3
Soften more precompiler conditionals on PacketSender.
2015-04-18 18:26:49 -07:00
Matias Fontanini
621af33a81
Fix more precompiler conditionals.
2015-04-18 18:19:56 -07:00
Matias Fontanini
1a9cd63397
Remove more WIN32 guards.
2015-04-18 18:15:00 -07:00
Matias Fontanini
e2f96123a3
Remove some WIN32-guarded code.
2015-04-18 18:08:22 -07:00
Matias Fontanini
96fc1a3749
Use pcap_sendpacket to send packets if this mode is enabled.
2015-04-18 17:46:14 -07:00
Ulf Wetzker
7d7aae5929
Made rsn_information() a const member function to make Dot11ManagementFrame immutable
2015-04-08 14:45:56 +02:00
Matias Fontanini
a326463160
Add one integer field for all flags on TCP.
2015-04-05 11:53:12 -07:00
Matias Fontanini
3791fc0ee6
Fix ICMPv6 issue on big endian.
2015-04-02 23:02:28 -07:00
Matias Fontanini
40a8354125
Fix Dot11/RSNInformation big endian issues.
2015-04-02 22:59:47 -07:00
Matias Fontanini
bb683c9f79
Fix invalid DNS IPv4 address parsing on big endian arch.
2015-04-02 22:43:35 -07:00
Matias Fontanini
fa4a074e2f
Add missing RadioTap fields.
2015-03-04 21:27:47 -08:00
Matias Fontanini
695f191bb8
Fix invalid DNS record retrieval.
2015-03-04 18:11:33 -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
Joseph Beshay
7382cc65de
Fixed TKIP decryption. Now packets from AP to STA are also decrypted.
2015-01-22 19:51:05 -06:00
Matias Fontanini
1ca4f8166b
Fix bug on EAPOL over snap serialization.
2015-01-17 09:49:47 -08:00
Matias Fontanini
65607b0eb5
Fixed PKTAP next layer interpretation.
2014-12-21 10:51:18 -08:00
Matias Fontanini
a4c67e5acd
Added PKTAP header.
2014-12-21 10:18:59 -08:00
zhiweicai
8bf3b1af45
fix ip_to_int function on windows
2014-12-16 21:32:59 -05:00
Matias Fontanini
ae135bb035
Fixed IP total length zero bug.
2014-11-25 22:49:05 -08:00
Matias Fontanini
3b126ca02b
Removed access to potentially invalid positions on vector.
2014-11-12 21:11:01 -08:00
Matias Fontanini
0ba05f9d1a
Fixed assertion throw on DNS on Visual Studio.
2014-11-11 22:01:23 -08:00
Matias Fontanini
3a38d36a60
Fixed invalid parsing of RadioTap ext flag field.
2014-11-06 21:44:59 -08:00
Matias Fontanini
d55a03ca0c
Added L3 packet receive exception on BSD.
2014-10-25 17:42:46 -05:00
Matias Fontanini
c4609fedd6
Added Loopback::matches_response.
2014-10-25 00:23:52 -05:00
Matias Fontanini
69440fbc75
Fixed exception thrown when an interface didn't have IP address.
2014-10-23 00:04:20 -05:00
Matias Fontanini
64fac4f255
Added NetworkInterface::is_loopback.
2014-10-19 09:13:28 -03:00
Matias Fontanini
9ee90755d1
Moved headers to include/tins.
2014-10-17 12:14:00 -03:00
Matias Fontanini
a1636896aa
Fixed compilation warning on unsigned integral constant.
2014-10-17 12:03:37 -03:00
Matias Fontanini
3ad96422b9
Added correct parsing of PPPoE session packets.
2014-09-24 09:15:20 -03:00
Matias Fontanini
ff74f3103c
Fixed invalid Loopback protocol detection on FreeBSD/OSX.
2014-09-20 09:52:42 -03:00
Matias Fontanini
addf0b3d98
Fixed OSX IP packet sending.
2014-09-19 10:07:31 -03:00
Matias Fontanini
1ba203d742
Fixed compilation errors on FreeBSD.
2014-09-19 08:50:35 -03:00
Matias Fontanini
977231cf46
Fixed bug when allocating IP over IP packets.
2014-09-09 08:37:17 -03:00
Matias Fontanini
b532753a16
Fixed network naming on Windows.
2014-09-07 23:48:37 -03:00
Matias Fontanini
e0b9e38587
Utils::network_interface returns pcap compatible names on Windows.
2014-09-07 17:54:11 -03:00
Matias Fontanini
9d4bdce7a9
NetworkInterface::name now works on Windows.
2014-09-07 16:40:50 -03:00
Matias Fontanini
57be666de1
Added documentation generation through the build system.
2014-09-04 22:44:10 -03:00
Matias Fontanini
8bd3313010
Removed print statement.
2014-08-31 18:46:13 -03:00
Matias Fontanini
4d8658ca54
Merge pull request #33 from mfontanini/sniffer-config-object
...
Sniffer config object
2014-08-31 18:44:02 -03:00
Matias Fontanini
b6fdba0077
The timeout Sniffer option is set to 1000 by default.
2014-08-31 18:34:52 -03:00
Matias Fontanini
83ced826d0
Fixed using pcap_compile on a not-yet activated pcap handle.
2014-08-30 23:54:18 -03:00
Matias Fontanini
7135473d19
Fixed bug triggered on Dot3 serialization.
...
In addition, Dot3 now always sets the packet length on
serialization.
2014-08-30 23:02:41 -03:00
Matias Fontanini
a7a4105cf8
Added OfflinePacketFilter class.
2014-08-30 23:01:46 -03:00
Santiago Alessandri
2b6a079980
Added back the original constructors of the Sniffer and FileSniffer to keep compatibility. Tagged them as deprecated, though.
...
Changed the default if_mask to 0 as PCAP_NETMASK_UNKNOWN is still not present in all versions of pcap.
Snap length is always set and it's default value is of 65535 not 0.
2014-08-30 17:29:30 -07:00
Matias Fontanini
9d2a60ef43
Added DataLinkType class.
2014-08-30 14:28:29 -03:00
Santiago Alessandri
49f451ecd1
Changed the name to SnifferConfiguration, it sounds better.
2014-08-29 16:35:13 -07:00
Santiago Alessandri
5b2934e102
Refactored sniffer class to take a SnifferConfigurator to do the setup.
...
This way it is easier to extend the different configuration capabilities.
2014-08-29 16:30:13 -07:00
Matias Fontanini
74c85085fb
IPv4Address now uses inet_pton when constructing from string.
2014-08-28 22:53:47 -03:00