summaryrefslogtreecommitdiff
path: root/security/arpCounterattack/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/arpCounterattack/files')
-rw-r--r--security/arpCounterattack/files/patch-address.hpp29
-rw-r--r--security/arpCounterattack/files/patch-arpCounterattack.cpp19
-rw-r--r--security/arpCounterattack/files/patch-arpCounterattack.hpp20
-rw-r--r--security/arpCounterattack/files/patch-configuration.hpp10
-rw-r--r--security/arpCounterattack/files/patch-ethernetInfo.hpp22
5 files changed, 100 insertions, 0 deletions
diff --git a/security/arpCounterattack/files/patch-address.hpp b/security/arpCounterattack/files/patch-address.hpp
new file mode 100644
index 000000000000..57fb6a54fa1e
--- /dev/null
+++ b/security/arpCounterattack/files/patch-address.hpp
@@ -0,0 +1,29 @@
+--- address.hpp.orig 2010-09-28 18:12:26.000000000 +0000
++++ address.hpp
+@@ -28,7 +28,7 @@
+ #include <sys/socket.h>
+
+ #include <arpa/inet.h>
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <netinet/if_ether.h>
+ #endif
+ #ifdef __linux__
+@@ -44,7 +44,7 @@
+ std::string textToEthernet(const std::string &textEthernetAddress) {
+ ether_addr binaryEthernetAddress;
+ ether_aton_r(textEthernetAddress.c_str(), &binaryEthernetAddress);
+- #ifdef __FreeBSD__
++ #if defined(__FreeBSD__) || defined(__DragonFly__)
+ return std::string((char*)binaryEthernetAddress.octet, ETHER_ADDR_LEN);
+ #endif
+ #ifdef __linux__
+@@ -60,7 +60,7 @@ std::string textToEthernet(const std::st
+ std::string ethernetToText(const char *binaryEthernetAddress) {
+ ether_addr _binaryEthernetAddress;
+ char textEthernetAddress[17];
+- #ifdef __FreeBSD__
++ #if defined(__FreeBSD__) || defined(__DragonFly__)
+ memcpy(_binaryEthernetAddress.octet, binaryEthernetAddress, ETHER_ADDR_LEN);
+ #endif
+ #ifdef __linux__
diff --git a/security/arpCounterattack/files/patch-arpCounterattack.cpp b/security/arpCounterattack/files/patch-arpCounterattack.cpp
new file mode 100644
index 000000000000..c1a28076eca0
--- /dev/null
+++ b/security/arpCounterattack/files/patch-arpCounterattack.cpp
@@ -0,0 +1,19 @@
+--- arpCounterattack.cpp.orig 2010-11-04 01:26:49.000000000 +0000
++++ arpCounterattack.cpp
+@@ -25,7 +25,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <queue>
+-#include <tr1/unordered_map>
++#include <unordered_map>
+ #include <vector>
+
+ #ifdef __FreeBSD__
+@@ -47,7 +47,6 @@
+ #include "string.hpp"
+
+ using namespace std;
+-using namespace tr1;
+
+ const string programName = "ARP Counterattack 1.2.0";
+ string pidFileName = "/var/run/arpCounterattack.pid";
diff --git a/security/arpCounterattack/files/patch-arpCounterattack.hpp b/security/arpCounterattack/files/patch-arpCounterattack.hpp
new file mode 100644
index 000000000000..82a500e1e891
--- /dev/null
+++ b/security/arpCounterattack/files/patch-arpCounterattack.hpp
@@ -0,0 +1,20 @@
+--- arpCounterattack.hpp.orig 2010-11-04 01:26:14.000000000 +0000
++++ arpCounterattack.hpp
+@@ -24,7 +24,7 @@
+
+ #include <string>
+ #include <vector>
+-#include <tr1/unordered_map>
++#include <unordered_map>
+
+ #include <sys/socket.h>
+ #include <sys/time.h>
+@@ -55,7 +55,7 @@ struct Interface {
+ std::string replyName;
+ pcap_t *replyDescriptor;
+ ModeType mode;
+- std::tr1::unordered_map <uint32_t, std::string> pairs;
++ std::unordered_map <uint32_t, std::string> pairs;
+ };
+
+ struct ARPCorrection {
diff --git a/security/arpCounterattack/files/patch-configuration.hpp b/security/arpCounterattack/files/patch-configuration.hpp
new file mode 100644
index 000000000000..e145cabf3a80
--- /dev/null
+++ b/security/arpCounterattack/files/patch-configuration.hpp
@@ -0,0 +1,10 @@
+--- configuration.hpp.orig 2010-09-28 18:09:56.000000000 +0000
++++ configuration.hpp
+@@ -26,6 +26,7 @@
+ #define CONFIGURATION_HPP
+
+ #include <fstream>
++#include <stdlib.h>
+ #include <limits>
+ #include <map>
+ #include <string>
diff --git a/security/arpCounterattack/files/patch-ethernetInfo.hpp b/security/arpCounterattack/files/patch-ethernetInfo.hpp
new file mode 100644
index 000000000000..d1ab4447672c
--- /dev/null
+++ b/security/arpCounterattack/files/patch-ethernetInfo.hpp
@@ -0,0 +1,22 @@
+--- ethernetInfo.hpp.orig 2010-10-11 21:46:00.000000000 +0000
++++ ethernetInfo.hpp
+@@ -27,7 +27,7 @@
+
+ #include <fstream>
+ #include <string>
+-#include <tr1/unordered_map>
++#include <unordered_map>
+
+ #include <arpa/inet.h>
+
+@@ -46,8 +46,8 @@ class EthernetInfo {
+ const std::string &find(const std::string oui);
+ const std::string &find(const char *oui);
+ private:
+- std::tr1::unordered_map <std::string, std::string> ouiMap;
+- std::tr1::unordered_map <std::string, std::string>::const_iterator ouiItr;
++ std::unordered_map <std::string, std::string> ouiMap;
++ std::unordered_map <std::string, std::string>::const_iterator ouiItr;
+ std::string _oui;
+ std::string empty;
+ std::string multicast;