RFC Errata
RFC 5531, "RPC: Remote Procedure Call Protocol Specification Version 2", May 2009
Note: This RFC has been updated by RFC 9289
Source of RFC: nfsv4 (wit)
Errata ID: 6255
Status: Reported
Type: Editorial
Publication Format(s) : TEXT
Reported By: Ed Schouten
Date Reported: 2020-08-12
Section 9 says:
union reply_body switch (reply_stat stat) { case MSG_ACCEPTED: accepted_reply areply; case MSG_DENIED: rejected_reply rreply; } reply;
It should say:
union reply_body switch (reply_stat stat) { case MSG_ACCEPTED: accepted_reply areply; case MSG_DENIED: rejected_reply rreply; };
Notes:
The XDR grammar doesn't allow stating this:
union type_name switch (...) { ...} member_name;
You only have these two forms:
union type_name switch (...) { ...};
union switch (...) { ...} member_name;