summaryrefslogtreecommitdiff
path: root/security/arpCounterattack/files/patch-ethernetInfo.hpp
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-07-07 15:16:05 +0000
committerJohn Marino <marino@FreeBSD.org>2014-07-07 15:16:05 +0000
commitb6c08b0df5503be01627016cd107b835b91a8c8d (patch)
tree4311c9ac50ce47a0a3629b7ae3f5511c88c6cf0b /security/arpCounterattack/files/patch-ethernetInfo.hpp
parentAdd staging support (diff)
security/arpCounterattack: stage, fix on F10+, fix on DragonFly
Also: * convert to c++11 for clang builds * convert to new LIB_DEPENDS format * use @sample keyword * pet portlint * USE=tar
Notes
Notes: svn path=/head/; revision=361098
Diffstat (limited to 'security/arpCounterattack/files/patch-ethernetInfo.hpp')
-rw-r--r--security/arpCounterattack/files/patch-ethernetInfo.hpp22
1 files changed, 22 insertions, 0 deletions
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;