Subject: amd and tcp mounts (again)
To: None <>
From: Manuel Bouyer <>
List: tech-userlevel
Date: 03/27/1999 17:23:48
Content-Type: text/plain; charset=us-ascii

would someone object it I revert to UDP for the default mount for amd ?
The UDP->TCP move between 1.3.x and the comming 1.4 can trigger too much
problems (besides the fact that NetBSD doesn't recover properly if the server
reboots yet):
- a non-NetBSD server may claim to support v3 tcp mounts but not deal with them
- on a local network, with a lot of clients, the large number of TCP
  connections may shot the server down

It would be bad that a working amd map for 1.3.3 cause problems with 1.4,
because TCP is used instead of UDP now. This change looks really intrusive to

If noone object I'll commit this Tuesday morning.

Manuel Bouyer <>

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="amd.diff"

--- srvr_nfs.c.old	Sat Mar 27 16:54:22 1999
+++ srvr_nfs.c	Sat Mar 27 16:53:17 1999
@@ -96,7 +96,7 @@
 #if defined(MNTTAB_OPT_PROTO) || defined(HAVE_FS_NFS3)
 /* protocols we know about, in order of preference */
-static char *protocols[] = { "tcp", "udp", NULL };
+static char *protocols[] = { "udp", "tcp", NULL };
 #endif /* defined(MNTTAB_OPT_PROTO) || defined(HAVE_FS_NFS3) */
 /* forward definitions */