Mercurial > dnsbl
comparison src/dnsbl.cpp @ 115:07e5d4721213
use larger resolver buffer
author | carl |
---|---|
date | Sun, 08 Jan 2006 09:07:00 -0800 |
parents | e107ade3b1c0 |
children | aa07452e641b |
comparison
equal
deleted
inserted
replaced
114:f4f5fb263072 | 115:07e5d4721213 |
---|---|
131 // packed structure to allow a single socket write to dump the | 131 // packed structure to allow a single socket write to dump the |
132 // length and the following answer. The packing attribute is gcc specific. | 132 // length and the following answer. The packing attribute is gcc specific. |
133 struct glommer { | 133 struct glommer { |
134 int length; | 134 int length; |
135 #ifdef NS_PACKETSZ | 135 #ifdef NS_PACKETSZ |
136 u_char answer[NS_PACKETSZ]; // with a resolver, we return resolver answers | 136 u_char answer[NS_PACKETSZ*4]; // with a resolver, we return resolver answers |
137 #else | 137 #else |
138 int answer; // without a resolver, we return a single ip4 address, 0 == no answer | 138 int answer; // without a resolver, we return a single ip4 address, 0 == no answer |
139 #endif | 139 #endif |
140 } __attribute__ ((packed)); | 140 } __attribute__ ((packed)); |
141 | 141 |