<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/dproxy/patches/" rel="alternate"/><link href="https://sourceforge.net/p/dproxy/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/dproxy/patches/</id><updated>2004-02-02T22:45:47Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Patch to support all query types</title><link href="https://sourceforge.net/p/dproxy/patches/2/" rel="alternate"/><published>2004-02-02T22:45:47Z</published><updated>2004-02-02T22:45:47Z</updated><author><name>Chris Sinclair</name><uri>https://sourceforge.net/u/kakariko81280/</uri></author><id>https://sourceforge.netff0bdc4219c9c6c1a9f65b693c027ce44b4621d4</id><summary type="html">&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;</summary></entry><entry><title>patch to make better offline behaviour</title><link href="https://sourceforge.net/p/dproxy/patches/1/" rel="alternate"/><published>2001-11-01T12:02:59Z</published><updated>2001-11-01T12:02:59Z</updated><author><name>Michael McTernan</name><uri>https://sourceforge.net/u/mm7323/</uri></author><id>https://sourceforge.net653cc077b039c7fef733f01d0bf42afb596de10c</id><summary type="html">&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;</summary></entry></feed>