Print undecoded NFS handles

-u“ option is used to print undecoded NFS handles, and the code is here:

  1. ......
  2. if (ndo->ndo_uflag) {
  3. u_int i;
  4. char const *sep = "";
  5. ND_PRINT(" fh[");
  6. for (i=0; i<len; i++) {
  7. /*
  8. * This displays 4 bytes in big-endian byte
  9. * order. That's as good a choice as little-
  10. * endian, as there's no guarantee that the
  11. * server is big-endian or little-endian or
  12. * that the file handle contains 4-byte
  13. * integral fields, and is better than "the
  14. * byte order of the host running tcpdump", as
  15. * the latter means that different hosts
  16. * running tcpdump may show the same file
  17. * handle in different ways.
  18. */
  19. ND_PRINT("%s%x", sep, GET_BE_U_4(dp + i));
  20. sep = ":";
  21. }
  22. ND_PRINT("]");
  23. return;
  24. }
  25. ......