summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/xl2tpd')
-rw-r--r--net-dialup/xl2tpd/files/xl2tpd-dnsretry.patch42
-rw-r--r--net-dialup/xl2tpd/metadata.xml1
2 files changed, 0 insertions, 43 deletions
diff --git a/net-dialup/xl2tpd/files/xl2tpd-dnsretry.patch b/net-dialup/xl2tpd/files/xl2tpd-dnsretry.patch
deleted file mode 100644
index b27703fe435e..000000000000
--- a/net-dialup/xl2tpd/files/xl2tpd-dnsretry.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-https://bugs.gentoo.org/show_bug.cgi?id=307489
-http://homenet.beeline.ru/index.php?showtopic=192551&st=0&p=1063626345&#entry1063626345
-
---- xl2tpd.c 2010-05-10 22:35:43.000000000 +0200
-+++ xl2tpd.c 2010-08-15 22:02:14.000000000 +0200
-@@ -587,9 +587,33 @@
- hp = gethostbyname (host);
- if (!hp)
- {
-- l2tp_log (LOG_WARNING, "Host name lookup failed for %s.\n",
-- host);
-- return NULL;
-+ if ( lac->redial )
-+ {
-+ int imax=lac->rmax;
-+ if ( lac->rmax == 0 )
-+ imax = 1;
-+ while ( imax > 0 )
-+ {
-+ hp = gethostbyname ( host );
-+ if ( hp )
-+ break;
-+ l2tp_log ( LOG_WARNING, "Y: Host name lookup failed for %s. Trying to look again in %d seconds.\n", host, lac->rtimeout );
-+ if ( lac->rtimeout > 0 )
-+ sleep ( lac->rtimeout );
-+ if ( lac->rmax > 0 )
-+ imax--;
-+ }
-+ if ( ( imax == 0 ) && ( lac->rmax > 0 ) )
-+ {
-+ l2tp_log ( LOG_WARNING, "Y: Host name lookup failed for %s after %d tries. Lookup stops now.\n", host, lac->rmax );
-+ return NULL;
-+ }
-+ }
-+ else
-+ {
-+ l2tp_log (LOG_WARNING, "Host name lookup failed for %s.\n", host);
-+ return NULL;
-+ }
- }
- bcopy (hp->h_addr, &addr, hp->h_length);
- /* Force creation of a new tunnel
diff --git a/net-dialup/xl2tpd/metadata.xml b/net-dialup/xl2tpd/metadata.xml
index 42549f5d851d..bab6c0296178 100644
--- a/net-dialup/xl2tpd/metadata.xml
+++ b/net-dialup/xl2tpd/metadata.xml
@@ -4,7 +4,6 @@
<!-- maintainer-needed -->
<longdescription>xl2tpd is a fork of l2tpd Layer 2 Tunneling Protocol (L2TP) daemon that can be used to transfer frames of OSI layer 2 protocols through an IP tunnel. While it provides authentication via CHAP or PAP it does not provide encryption itself and should therefore be externally secured (via IPSEC).</longdescription>
<use>
- <flag name="dnsretry">Patch for host lookup retries, activated by redial feature</flag>
<flag name="kernel">Enable kernel interface for PPPoL2TP</flag>
</use>
<upstream>