ref: f92057cc3928015d676e77e846104741d8e43b05
parent: cc3abe39aa0dc10f0630acafc0bcb95a13444dca
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 13 18:37:26 EDT 2015
ndb/dns: use same buffer size of udp packet in redistrib() as dnudpserver() (fixes assert)
--- a/sys/src/cmd/ndb/dnudpserver.c
+++ b/sys/src/cmd/ndb/dnudpserver.c
@@ -102,9 +102,9 @@
static void
redistrib(uchar *buf, int len)
{
+ static uchar outpkt[Udphdrsize + Maxudp + 1024];
Forwtarg *tp;
Udphdr *uh;
- static uchar outpkt[1500];
assert(len <= sizeof outpkt);
memmove(outpkt, buf, len);