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
d820b0d19d
Added documentation for SnifferConfiguration.
2014-08-30 23:35:05 -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
Santiago Alessandri
039b41cb76
Updated the examples to work with the new Sniffer constructor using the SnifferConfiguration object.
2014-08-29 18:20:15 -07:00
Santiago Alessandri
49f451ecd1
Changed the name to SnifferConfiguration, it sounds better.
2014-08-29 16:35:13 -07:00
Santiago Alessandri
10c5013305
Created gitignore file to exclude build directory and config.h automatically generated file.
2014-08-29 16:31:01 -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
Matias Fontanini
e7e66808a4
Updated files for release.
v3.1
2014-08-24 21:40:22 -03:00
Matias Fontanini
2beebd6df3
Fix invalid lib name.
2014-08-24 20:07:30 -03:00
Matias Fontanini
0e967b4d30
Removed unnecessary check for CXX11_COMPILER_FLAGS.
2014-08-24 18:44:53 -03:00
Matias Fontanini
f5b0603799
CMake compilation now works on Windows.
2014-08-24 18:06:58 -03:00
Matias Fontanini
443974335a
Added examples to CMake build system.
2014-08-23 23:12:19 -03:00
Matias Fontanini
2c2df752d0
Added tests to CMake build system.
2014-08-23 18:50:00 -03:00
Matias Fontanini
3a02bd0a3f
Fix build system issues.
2014-08-23 13:05:51 -03:00
Santiago Alessandri
d0d4379b1b
Added missing files.
2014-08-22 11:28:09 -07:00
Santiago Alessandri
fb7dbed58a
First approach towards moving to CMake
2014-08-22 11:03:16 -07:00
Matias Fontanini
d2f0cd0686
Fixed issue #29 : Added empty name check on DNS::encode_domain_name.
2014-08-20 22:44:03 -03:00
Matias Fontanini
2d6fcfb74a
Fix ICMPv6 serialization (patch by einarjon).
2014-08-18 09:11:03 -03:00
Matias Fontanini
424e31bdd6
Updated configure files.
2014-08-09 14:42:11 -03:00
Matias Fontanini
5d8f3e6741
Updated README and CHANGES files.
v3.0
2014-08-07 21:39:54 -03:00
Matias Fontanini
5d0ba22ac4
Fixed invalid parsing of unknown DNS records.
2014-08-07 21:22:31 -03:00
Matias Fontanini
8a44b29d92
Protocols now always set the next layer protocol flag.
2014-08-07 20:42:17 -03:00
Matias Fontanini
1b47623484
Timestamps can now be constructed from std::chrono::duration.
2014-08-07 20:12:19 -03:00
Matias Fontanini
282cd0913c
Added Packet constructor.
2014-08-07 19:58:41 -03:00
Matias Fontanini
aed5ccdfca
Updated configure files.
2014-08-07 19:56:29 -03:00
Matias Fontanini
8e6ddfd764
Fixed bug in EthernetII when changing its inner PDU.
2014-08-07 19:38:05 -03:00
Matias Fontanini
1c2bfd42ca
Fixed invalid address passed to memcpy.
2014-08-07 19:37:06 -03:00
Matias Fontanini
b9db3ea1d3
Merge pull request #22 from mantiz/fix-armv5-alignment-issues
...
fix armv5 alignment issues
2014-07-31 13:47:17 -03:00
Christian Hammerl
52b0ee7ceb
fix armv5 alignment issues
2014-07-31 15:49:52 +00:00
Matias Fontanini
3ef85aae38
Added BaseSniffer::set_extract_raw_pdus.
2014-07-30 23:01:03 -03:00
Matias Fontanini
3bb310dd6b
Updated autotools files.
2014-07-30 22:59:14 -03:00
Matias Fontanini
a918229d4b
Merge pull request #21 from jedahan/master
...
minimum automake version from 1.13 -> 1.11
2014-07-30 22:52:08 -03:00
Jonathan Dahan
95a9d18b6b
minimum automake version from 1.13 -> 1.11
2014-07-30 11:44:24 -04:00
Matias Fontanini
7371b95ebc
Merge pull request #19 from kylemcdonald/master
...
added Utils::to_string(PDU::PDUType). closes #12 .
2014-07-29 08:57:44 -03:00
Kyle McDonald
416edc34f7
added Utils::to_string(PDU::PDUType). closes #12 .
2014-07-27 00:24:16 -04:00
Matias Fontanini
2dff95700f
Updated copyright notice.
2014-07-13 11:04:29 -03:00
Matias Fontanini
46b52ad26e
Updated example.
2014-07-13 10:59:00 -03:00
Matias Fontanini
22e7c1d7c4
Fixed error compilations on windows.
2014-07-02 19:02:48 -03:00
Matias Fontanini
dd2ed5daa4
Added undef directive to avoid compilation error on windows.
2014-07-01 17:06:39 -03:00
Matias Fontanini
c25d4738b4
Added check for HAVE_DOT11 macro in RSNInformation header/source files.
2014-06-09 22:50:49 -03:00
Matias Fontanini
3d4f509a62
Added call to pcap_can_set_rfmon before calling pcap_set_rfmon.
2014-06-09 10:24:09 -03:00
Matias Fontanini
c9e955903e
Fixed ICMPv6 checksum calculation.
2014-06-09 10:09:20 -03:00
Matias Fontanini
201ea885a1
Added method in TCP and IP that emplaces an option.
2014-06-01 12:55:36 -03:00
Matias Fontanini
356ea2a68a
Added small option optimization to PDUOption.
2014-05-29 23:15:44 -03:00
Matias Fontanini
559c963d63
Fixed compilation errors on Windows.
2014-05-06 00:13:05 -03:00
Matias Fontanini
4bf5876adf
Fixed compilation error in RSNInformation.
2014-05-05 08:34:16 -03:00
Matias Fontanini
b2788fad63
Simplified error string generation on Sniffer::pcap_open_live_extended.
2014-05-05 08:32:45 -03:00
Matias Fontanini
c249ff608c
Merge pull request #11 from kylemcdonald/master
...
changed ICMP::check to ICMP::checksum
2014-05-03 18:52:29 -03:00