From 90baec3907ea1f7b387c64ba17bada4e1dd12fcd Mon Sep 17 00:00:00 2001 From: spz Date: Tue, 17 Feb 2009 21:04:14 +0000 Subject: oops, the two new patches escaped commit last time --- net/irrtoolset-nox11/patches/patch-ea | 22 ++++++++++++++++++++++ net/irrtoolset-nox11/patches/patch-eb | 12 ++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 net/irrtoolset-nox11/patches/patch-ea create mode 100644 net/irrtoolset-nox11/patches/patch-eb (limited to 'net') diff --git a/net/irrtoolset-nox11/patches/patch-ea b/net/irrtoolset-nox11/patches/patch-ea new file mode 100644 index 00000000000..83d82e4fd36 --- /dev/null +++ b/net/irrtoolset-nox11/patches/patch-ea @@ -0,0 +1,22 @@ +$NetBSD: patch-ea,v 1.1 2009/02/17 21:04:14 spz Exp $ + +--- src/rpsl/rpsl/afi.cc.orig 2006-06-08 18:08:25.000000000 +0200 ++++ src/rpsl/rpsl/afi.cc +@@ -29,6 +29,8 @@ + + using namespace std; + ++bool AddressFamily::noDefaultAfi = false; ++ + AddressFamily::AddressFamily(void) : + afi(NULL) + { +@@ -63,7 +65,7 @@ bool AddressFamily::is_ipv6() { + } + + bool AddressFamily::is_default() { +- if (strcmp(afi, "ipv4.unicast") == 0) ++ if (strcmp(afi, "ipv4.unicast") == 0 && !AddressFamily::noDefaultAfi) + return true; + return false; + } diff --git a/net/irrtoolset-nox11/patches/patch-eb b/net/irrtoolset-nox11/patches/patch-eb new file mode 100644 index 00000000000..8b057711cef --- /dev/null +++ b/net/irrtoolset-nox11/patches/patch-eb @@ -0,0 +1,12 @@ +$NetBSD: patch-eb,v 1.1 2009/02/17 21:04:14 spz Exp $ + +--- src/rpsl/rpsl/afi.hh.orig 2006-06-08 18:08:25.000000000 +0200 ++++ src/rpsl/rpsl/afi.hh +@@ -32,6 +32,7 @@ class MPPrefix; + + class AddressFamily { + public: ++ static bool noDefaultAfi; + char *afi; + + public: -- cgit v1.2.3