From 54dc2eefdab938ae2b410e756853cd13e4aaf074 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Wed, 26 Feb 2014 21:54:59 +0000 Subject: - Update to 1.8.5 - Unbreak and unexpire - Stage support PR: ports/186982 Submitted by: Johannes 5 Joemann --- net/xorp/files/patch-policy__configuration.hh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net/xorp/files/patch-policy__configuration.hh (limited to 'net/xorp/files/patch-policy__configuration.hh') diff --git a/net/xorp/files/patch-policy__configuration.hh b/net/xorp/files/patch-policy__configuration.hh new file mode 100644 index 000000000000..6fba04e7a3d9 --- /dev/null +++ b/net/xorp/files/patch-policy__configuration.hh @@ -0,0 +1,22 @@ +--- ./policy/configuration.hh.orig 2011-03-16 21:27:54.000000000 +0000 ++++ ./policy/configuration.hh 2014-02-26 21:17:13.000000000 +0000 +@@ -43,11 +43,19 @@ + + // XXX we go reverse in order to make peer specific policies override global + // ones. Global is "" so it's always smallest (first). ++/* + #define FOR_ALL_POLICIES(n) \ + for (PROTOCOL::reverse_iterator i = _protocols.rbegin(); \ + i != _protocols.rend(); ++i) \ + for (POLICY::reverse_iterator n = i->second->rbegin(); \ + n != i->second->rend(); ++n) ++*/ ++#define FOR_ALL_POLICIES(n) \ ++ if (! _protocols.empty()) \ ++ for (PROTOCOL::iterator i = _protocols.end(); \ ++ i-- != _protocols.begin(); ) \ ++ for (POLICY::iterator n = i->second->end(); \ ++ (! i->second->empty()) & (n-- != i->second->begin()); ) + + class IEMap { + public: -- cgit v1.2.3