]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-nfs.c
TESTrun: Use more 'newdir' and 'diffdir' variables
[tcpdump] / print-nfs.c
index d08f5c9f993f86c098c8b1734d606d216ba744a2..bbce49536f2acf653179c742e85bccc4d324c534 100644 (file)
@@ -896,13 +896,15 @@ nfs_printfh(netdissect_options *ndo,
                if (spacep)
                        *spacep = '\0';
 
-               ND_PRINT(" fh %s/", temp);
+               ND_PRINT(" fh ");
+               fn_print_str(ndo, (const u_char *)temp);
+               ND_PRINT("/");
        } else {
                ND_PRINT(" fh %u,%u/",
                             fsid.Fsid_dev.Major, fsid.Fsid_dev.Minor);
        }
 
-       if(fsid.Fsid_dev.Minor == 257)
+       if(fsid.Fsid_dev.Minor == UINT_MAX && fsid.Fsid_dev.Major == UINT_MAX)
                /* Print the undecoded handle */
                fn_print_str(ndo, (const u_char *)fsid.Opaque_Handle);
        else