1
0

patch-mount_c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --- dsniff-2.4.orig/mount.c 1970-01-01 00:00:00.000000000 +0100
  2. +++ dsniff-2.4/mount.c 2009-12-11 12:42:08.000000000 +0100
  3. @@ -0,0 +1,97 @@
  4. +/*
  5. + * Please do not edit this file.
  6. + * It was generated using rpcgen.
  7. + */
  8. +
  9. +#include "mount.h"
  10. +
  11. +bool_t
  12. +xdr_fhandle (XDR *xdrs, fhandle objp)
  13. +{
  14. + register int32_t *buf;
  15. +
  16. + if (!xdr_opaque (xdrs, objp, FHSIZE))
  17. + return FALSE;
  18. + return TRUE;
  19. +}
  20. +
  21. +bool_t
  22. +xdr_fhandle3 (XDR *xdrs, fhandle3 *objp)
  23. +{
  24. + register int32_t *buf;
  25. +
  26. + if (!xdr_bytes (xdrs, (char **)&objp->fhandle3_val, (u_int *) &objp->fhandle3_len, FHSIZE3))
  27. + return FALSE;
  28. + return TRUE;
  29. +}
  30. +
  31. +bool_t
  32. +xdr_fhstatus (XDR *xdrs, fhstatus *objp)
  33. +{
  34. + register int32_t *buf;
  35. +
  36. + if (!xdr_u_int (xdrs, &objp->fhs_status))
  37. + return FALSE;
  38. + switch (objp->fhs_status) {
  39. + case 0:
  40. + if (!xdr_fhandle (xdrs, objp->fhstatus_u.fhs_fhandle))
  41. + return FALSE;
  42. + break;
  43. + default:
  44. + break;
  45. + }
  46. + return TRUE;
  47. +}
  48. +
  49. +#define fhs_fh fhstatus_u.fhs_fhandle
  50. +
  51. +bool_t
  52. +xdr_mountstat3 (XDR *xdrs, mountstat3 *objp)
  53. +{
  54. + register int32_t *buf;
  55. +
  56. + if (!xdr_enum (xdrs, (enum_t *) objp))
  57. + return FALSE;
  58. + return TRUE;
  59. +}
  60. +
  61. +bool_t
  62. +xdr_mountres3_ok (XDR *xdrs, mountres3_ok *objp)
  63. +{
  64. + register int32_t *buf;
  65. +
  66. + if (!xdr_fhandle3 (xdrs, &objp->fhandle))
  67. + return FALSE;
  68. + if (!xdr_array (xdrs, (char **)&objp->auth_flavors.auth_flavors_val, (u_int *) &objp->auth_flavors.auth_flavors_len, ~0,
  69. + sizeof (int), (xdrproc_t) xdr_int))
  70. + return FALSE;
  71. + return TRUE;
  72. +}
  73. +
  74. +bool_t
  75. +xdr_mountres3 (XDR *xdrs, mountres3 *objp)
  76. +{
  77. + register int32_t *buf;
  78. +
  79. + if (!xdr_mountstat3 (xdrs, &objp->fhs_status))
  80. + return FALSE;
  81. + switch (objp->fhs_status) {
  82. + case MNT_OK:
  83. + if (!xdr_mountres3_ok (xdrs, &objp->mountres3_u.mountinfo))
  84. + return FALSE;
  85. + break;
  86. + default:
  87. + break;
  88. + }
  89. + return TRUE;
  90. +}
  91. +
  92. +bool_t
  93. +xdr_dirpath (XDR *xdrs, dirpath *objp)
  94. +{
  95. + register int32_t *buf;
  96. +
  97. + if (!xdr_string (xdrs, objp, MNTPATHLEN))
  98. + return FALSE;
  99. + return TRUE;
  100. +}