Mark Johnson
2010-10-11 22:04:04 UTC
However, I use a patched version of djbdns allowing 'big' UDP packets
(common these days). I suggest to enhance the value of 'udpbuf' in
int dns_transmit_get(struct dns_transmit *d,const iopause_fd *x,const
struct taia *when)
{
char udpbuf[1200];
unsigned char ch;
int r;
int fd;
Remember: The original maximum size for UDP packets was due to the IPv4
MTU constraints, roughly about 500 byte. Current networks -- able to
transmit IPv6 packets -- need to support a minimum MTU of 1280 byte.
Change that value and recompile. This changed value will now be the
standard maximum size of all djbdns traffic.
regards.
--eh.
--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
FYI, I merged a similar fix (patch from Matthew Dempsky) into zinq-djbdns a(common these days). I suggest to enhance the value of 'udpbuf' in
int dns_transmit_get(struct dns_transmit *d,const iopause_fd *x,const
struct taia *when)
{
char udpbuf[1200];
unsigned char ch;
int r;
int fd;
Remember: The original maximum size for UDP packets was due to the IPv4
MTU constraints, roughly about 500 byte. Current networks -- able to
transmit IPv6 packets -- need to support a minimum MTU of 1280 byte.
Change that value and recompile. This changed value will now be the
standard maximum size of all djbdns traffic.
regards.
--eh.
--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de
while back:
http://zinq.svn.sourceforge.net/viewvc/zinq/dns/trunk/dns_transmit.c?r1=51&r2=66
http://marc.info/?l=djbdns&m=122368590802063&w=2