Wireshark-dev: [Wireshark-dev] [PATCH 09/16] NFS: Use macros instead of magic numbers in NFS4 d

From: Pali Rohár <pali@xxxxxxxxxx>
Date: Fri, 13 Sep 2024 23:08:44 +0200
---
 epan/dissectors/packet-nfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index 367ee65f0df1..ec5b451cd76e 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -9685,7 +9685,7 @@ dissect_rpc_secparms4(tvbuff_t *tvb, int offset, proto_tree *tree)
 		offset = dissect_rpc_uint32(tvb, tree, hf_nfs4_flavor, offset);
 
 		switch (flavor) {
-		case 1: { /* AUTH_SYS */
+		case AUTH_UNIX: {
 			unsigned count2;
 			offset = dissect_rpc_uint32(tvb, tree, hf_nfs4_stamp, offset);
 			offset = dissect_nfs_utf8string(tvb, offset, tree, hf_nfs4_machinename, NULL);
@@ -9698,7 +9698,7 @@ dissect_rpc_secparms4(tvbuff_t *tvb, int offset, proto_tree *tree)
 			}
 			break;
 		}
-		case 6: /* RPCSEC_GSS */
+		case RPCSEC_GSS:
 			offset = dissect_rpc_uint32(tvb, tree, hf_nfs4_service, offset);
 			proto_item_append_text(tree, ", Handle from server");
 			offset = dissect_nfsdata(tvb, offset, tree, hf_nfs_data);
-- 
2.20.1