Matias Fontanini
38239be472
Remove unused cassert header inclusions
2015-12-27 04:38:31 -08:00
Matias Fontanini
31ca9a6cc8
Port Dot11 classes to use OutputMemoryStream
2015-12-26 16:54:35 -08:00
Matias Fontanini
02e2b278de
Add OutputMemoryStream and port most classes to use it
2015-12-26 06:30:00 -08:00
Matias Fontanini
9750f46c6d
Port all PDUs to use InputMemoryStream on constructors from buffer
2015-12-25 06:30:27 -08:00
Matias Fontanini
13c05fbdb1
Add input memory stream class and port some PDUs to use it
2015-12-24 15:21:07 -08:00
Matias Fontanini
6d90b0ce32
Add extensions for ICMPv6
2015-12-21 12:33:52 -08:00
Matias Fontanini
530cc56922
Set proper value for length field
2015-12-19 16:46:13 -08:00
Matias Fontanini
0a16d8f462
Add ICMP extensions to ICMP PDU
...
The length field is still not being set
2015-12-17 20:42:57 -08:00
Matias Fontanini
e3c382efa0
Fix sum_range issue on big endian
2015-12-16 20:03:27 -08:00
Matias Fontanini
fb43cb738b
Add ICMP extensions to ICMP PDU
2015-12-14 21:18:42 -08:00
Matias Fontanini
6e026fcb66
Add missing member functions to ICMP extension classes
2015-12-14 20:22:50 -08:00
Matias Fontanini
187e7b1ca3
Add ICMP extensions structure class
2015-12-13 21:49:26 -08:00
Matias Fontanini
8aff1b4afe
Add ICMPExtension class
2015-12-13 19:46:58 -08:00
Matias Fontanini
45546eee39
Fix RSNInformation issues on big endian architectures
2015-12-08 08:36:24 -08:00
Matias Fontanini
a35b086d12
Use endian independent way of setting IP fragment offset and flags
2015-12-07 22:11:28 -08:00
Matias Fontanini
3e23bcc73c
Add IP::fragment_offset and IP::flags
2015-12-07 21:10:41 -08:00
Matias Fontanini
35d5045db4
Don't set Ethernet type if inner PDU type is unknown
...
Fixes #116
2015-11-27 20:31:12 -08:00
Matias Fontanini
534bdaf30b
Always calculate IP checksum
...
Fixes #105
2015-11-08 10:25:49 -08:00
Matias Fontanini
978041a9a2
Define default constructor for PKTAP
...
Fixes #106
2015-10-16 10:04:42 -07:00
Matias Fontanini
30445f1e97
Guard 802.11 parsing code on PPI around HAVE_DOT11
2015-09-21 21:06:57 -07:00
Matias Fontanini
693cef04df
Fix parsing of Dot11 packets encapsulated on PPI having FCS-at-end
2015-09-21 20:49:17 -07:00
Matias Fontanini
891f4ac4d7
Fixes #98 : Erase streams when they're reassembed on IPv4Reassembler
2015-08-22 10:57:45 -07:00
Matias Fontanini
6dec68128d
Add remove_option member to IP, TCP, Dot11, ICMPv6, DHCP and DHCPv6
2015-08-17 15:19:03 -07:00
rklabs
9c9994f129
Restoring deleted comment
2015-07-22 22:24:53 +05:30
rklabs
97e6a99c5e
Add additional check for found_ip in case of tunnel interface and then raise exception
2015-07-22 22:06:21 +05:30
rklabs
d09450980a
Incase of tunnel interface(VPN) mac address can be 0
2015-07-22 21:08:40 +05:30
bkambach
3b23d68a10
Remove code, instead of commenting it out
2015-07-13 17:52:44 -04:00
bkambach
fe48586eef
Remove update of options size in constructor
2015-07-13 17:49:29 -04:00
bkambach
848d8348ae
Increment option size when adding a new option
2015-07-13 17:28:33 -04:00
Matias Fontanini
d447009779
Add metric to RouteEntry.
2015-06-21 14:32:23 -07:00
Matias Fontanini
b451a9eae0
Detect if pcap version defines pcap_set_immediate_mode.
2015-06-14 11:23:32 -07:00
Matias Fontanini
c42c18f5df
Allow setting immediate mode on Sniffer.
2015-06-14 10:56:00 -07:00
Matias Fontanini
8bb837eda8
Use one flags field for all flags on SnifferConfiguration.
2015-06-14 10:41:07 -07:00
Matias Fontanini
cab0ba8b9a
Fix bug on SessionKeys::SessionKeys.
2015-06-12 20:09:23 -07:00
Matias Fontanini
0a2fdfcd42
Fix compilation errors on android.
2015-06-07 15:25:57 -07:00
Matias Fontanini
0f3441ccf6
Add PacketWriter::write overload that takes a Packet.
2015-05-26 21:33:13 -07:00
Matias Fontanini
0dee5618f2
Allow retrieving keys on WPA2Decrypter.
2015-05-21 21:14:24 -07:00
Matias Fontanini
76c6511e0c
Add NetworkInterface::is_up and NetworkInterface::info.
2015-05-19 18:52:42 -07:00
Matias Fontanini
2f2a705127
Add NetworkInterface::Info::is_up.
2015-05-19 18:44:24 -07:00
Matias Fontanini
c42cd0114f
Fix compilation warnings on Windows x64.
2015-05-17 17:30:54 -07:00
Matias Fontanini
325de4abca
Fix error on VC triggered by pcap redefining the "inline" keyword.
2015-05-12 19:03:52 -07:00
Matias Fontanini
d1ffecb132
Soften DNS parsing rules. Fixes #74 .
2015-05-10 12:19:58 -07:00
Matias Fontanini
a607ab380c
Replace WIN32 macro with _WIN32.
2015-05-02 16:25:59 -07:00
Matias Fontanini
f229f9a81e
Merge pull request #72 from mfontanini/googletest-submodule
...
Googletest submodule
2015-04-25 18:57:57 -07:00
Matias Fontanini
62260ab93b
Fix more compilation warnings on Windows.
2015-04-25 18:54:43 -07:00
Matias Fontanini
c108f6e4e6
Fix compilation warnings on Windows.
2015-04-25 18:44:38 -07:00
Matias Fontanini
e64e0ce27b
Fix IPv6Address::to_string on Windows.
2015-04-25 12:20:47 -07:00
Matias Fontanini
995abd4d00
Fix DNS issues triggered on VC.
2015-04-25 11:32:47 -07:00
Ben McMorran
eb5598be7c
Perserve IP protocol when using RawPDU
...
Previously, the IP protocol field for non-fragmented packets was forcibly overwritten to the protocol of the inner PDU even if that PDU was a RawPDU. This behavior contradicts the documentation.
2015-04-20 02:45:27 -04:00
Matias Fontanini
8c2b56e286
Allow sending Dot3 on Windows using pcap_sendpacket.
2015-04-18 19:37:57 -07:00