comparison src/dnsbl.cpp @ 428:6f2db3d19a34 stable-6-0-61

allow 4000 byte spf txt records
author Carl Byington <carl@five-ten-sg.com>
date Mon, 02 Oct 2017 15:09:55 -0700
parents 1b7a785610f5
children 69d33c034a8e
comparison
equal deleted inserted replaced
427:9911e362b5dc 428:6f2db3d19a34
149 // packed structure to allow a single socket write to dump the 149 // packed structure to allow a single socket write to dump the
150 // length and the following answer. The packing attribute is gcc specific. 150 // length and the following answer. The packing attribute is gcc specific.
151 struct glommer { 151 struct glommer {
152 size_t length; 152 size_t length;
153 #ifdef NS_PACKETSZ 153 #ifdef NS_PACKETSZ
154 u_char answer[NS_PACKETSZ*8]; // with a resolver, we return resolver answers 154 u_char answer[maxdnslength]; // with a resolver, we return resolver answers
155 #else 155 #else
156 uint32_t answer; // without a resolver, we return a single ipv4 address in network byte order, 0 == no answer 156 uint32_t answer; // without a resolver, we return a single ipv4 address in network byte order, 0 == no answer
157 #endif 157 #endif
158 } __attribute__ ((packed)); 158 } __attribute__ ((packed));
159 159