Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/ndb-dns-redistrib-size/ndb-dns-redistrib-size.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/cmd/ndb/dnudpserver.c
+++ sys/src/cmd/ndb/dnudpserver.c
@@ -106,7 +106,7 @@
 {
 	Forwtarg *tp;
 	Udphdr *uh;
-	static uchar outpkt[1500];
+	static uchar outpkt[Udphdrsize + Maxpayload];
 
 	assert(len <= sizeof outpkt);
 	memmove(outpkt, buf, len);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.