<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/dproxy/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/dproxy/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 02 Feb 2004 22:45:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dproxy/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Patch to support all query types</title><link>https://sourceforge.net/p/dproxy/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This patch allows dproxy to cope more gracefully with&lt;br /&gt;
unsupported DNS query types.  It will not cache&lt;br /&gt;
unsupported requests, but it will still pass them on&lt;br /&gt;
correctly.  This means MX records can now be accessed,&lt;br /&gt;
but there is no speed advantage to it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Sinclair</dc:creator><pubDate>Mon, 02 Feb 2004 22:45:47 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netff0bdc4219c9c6c1a9f65b693c027ce44b4621d4</guid></item><item><title>patch to make better offline behaviour</title><link>https://sourceforge.net/p/dproxy/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The following patch makes dproxy-ng send error &lt;br /&gt;
replies to all lookup when a PPP connection is not &lt;br /&gt;
active (and the detect PPP option is set; otherwise &lt;br /&gt;
patch has no effect to behavior).&lt;/p&gt;
&lt;p&gt;Previous behavior would return any cached entries, &lt;br /&gt;
causing apps to believe they were online, which would &lt;br /&gt;
mean they would attempt a connect() and then break &lt;br /&gt;
after a long timeout.&lt;/p&gt;
&lt;p&gt;The disadvantage to this patch is that if you are &lt;br /&gt;
using dproxy as a server by placing names in &lt;br /&gt;
/etc/hosts, it will return error responses for local &lt;br /&gt;
lookups which could be served, if offline.&lt;/p&gt;
&lt;p&gt;Here is the patch for dproxy.c, the only file I &lt;br /&gt;
modified.&lt;/p&gt;
&lt;p&gt;*** dproxy-nexgen/dproxy.c  Mon Mar 20 00:50:50 2000&lt;br /&gt;
--- dproxy-nexgen.mcm/dproxy.c  Thu Nov  1 11:40:58 &lt;br /&gt;
2001&lt;br /&gt;
***************&lt;br /&gt;
*** 82,87 ****&lt;br /&gt;
--- 82,95 ----&lt;br /&gt;
struct in_addr in;&lt;br /&gt;
int retval = -1;&lt;/p&gt;
&lt;p&gt;+   /* If not connected, always return not found */&lt;br /&gt;
+   if(!is_connected()) {&lt;br /&gt;
+     debug(&amp;amp;quot;Not connected **\n&amp;amp;quot;);&lt;br /&gt;
+     dns_construct_error_reply(m);&lt;br /&gt;
+     dns_write_packet( dns_sock, m-&amp;amp;gt;src_addr, &lt;br /&gt;
m-&amp;amp;gt;src_port, m );&lt;br /&gt;
+     return;&lt;br /&gt;
+   }&lt;br /&gt;
+&lt;br /&gt;
if( m-&amp;amp;gt;message.question[0].type == A || &lt;br /&gt;
m-&amp;amp;gt;message.question[0].type == AAA){      /* standard &lt;br /&gt;
query */&lt;br /&gt;
retval = cache_lookup_name( m-&amp;amp;gt;cname, m-&amp;amp;gt;ip );&lt;br /&gt;
***************&lt;br /&gt;
*** 95,111 ****&lt;br /&gt;
switch( retval )&lt;br /&gt;
{&lt;br /&gt;
case 0:&lt;br /&gt;
-       if( is_connected() ){&lt;br /&gt;
debug(&amp;amp;quot;Adding to list-&amp;amp;gt; id: %d\n&amp;amp;quot;, &lt;br /&gt;
m-&amp;amp;gt;message.header.id);&lt;br /&gt;
dns_request_list = dns_list_add( &lt;br /&gt;
dns_request_list, m );&lt;br /&gt;
/* relay the query untouched */&lt;br /&gt;
inet_aton( config.name_server, &amp;amp;amp;in );&lt;br /&gt;
dns_write_packet( dns_sock, in, PORT, m );&lt;br /&gt;
-       }else{&lt;br /&gt;
-   debug(&amp;amp;quot;Not connected **\n&amp;amp;quot;);&lt;br /&gt;
-   dns_construct_error_reply(m);&lt;br /&gt;
-   dns_write_packet( dns_sock, m-&amp;amp;gt;src_addr, &lt;br /&gt;
m-&amp;amp;gt;src_port, m );&lt;br /&gt;
-       }&lt;br /&gt;
break;&lt;br /&gt;
case 1:&lt;br /&gt;
dns_construct_reply( m );&lt;br /&gt;
--- 103,113 ----&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael McTernan</dc:creator><pubDate>Thu, 01 Nov 2001 12:02:59 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net653cc077b039c7fef733f01d0bf42afb596de10c</guid></item></channel></rss>