1
0

patch-mount_h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. --- dsniff-2.4.orig/mount.h 1970-01-01 00:00:00.000000000 +0100
  2. +++ dsniff-2.4/mount.h 2009-12-11 12:42:08.000000000 +0100
  3. @@ -0,0 +1,151 @@
  4. +/*
  5. + * Please do not edit this file.
  6. + * It was generated using rpcgen.
  7. + */
  8. +
  9. +#ifndef _MOUNT_H_RPCGEN
  10. +#define _MOUNT_H_RPCGEN
  11. +
  12. +#include <rpc/rpc.h>
  13. +
  14. +
  15. +#ifdef __cplusplus
  16. +extern "C" {
  17. +#endif
  18. +
  19. +#define MNTPATHLEN 1024
  20. +#define MNTNAMLEN 255
  21. +#define FHSIZE 32
  22. +#define FHSIZE3 64
  23. +
  24. +typedef char fhandle[FHSIZE];
  25. +
  26. +typedef struct {
  27. + u_int fhandle3_len;
  28. + char *fhandle3_val;
  29. +} fhandle3;
  30. +
  31. +struct fhstatus {
  32. + u_int fhs_status;
  33. + union {
  34. + fhandle fhs_fhandle;
  35. + } fhstatus_u;
  36. +};
  37. +typedef struct fhstatus fhstatus;
  38. +
  39. +#define fhs_fh fhstatus_u.fhs_fhandle
  40. +
  41. +enum mountstat3 {
  42. + MNT_OK = 0,
  43. + MNT3ERR_PERM = 1,
  44. + MNT3ERR_NOENT = 2,
  45. + MNT3ERR_IO = 5,
  46. + MNT3ERR_ACCES = 13,
  47. + MNT3ERR_NOTDIR = 20,
  48. + MNT3ERR_INVAL = 22,
  49. + MNT3ERR_NAMETOOLONG = 63,
  50. + MNT3ERR_NOTSUPP = 10004,
  51. + MNT3ERR_SERVERFAULT = 10006,
  52. +};
  53. +typedef enum mountstat3 mountstat3;
  54. +
  55. +struct mountres3_ok {
  56. + fhandle3 fhandle;
  57. + struct {
  58. + u_int auth_flavors_len;
  59. + int *auth_flavors_val;
  60. + } auth_flavors;
  61. +};
  62. +typedef struct mountres3_ok mountres3_ok;
  63. +
  64. +struct mountres3 {
  65. + mountstat3 fhs_status;
  66. + union {
  67. + mountres3_ok mountinfo;
  68. + } mountres3_u;
  69. +};
  70. +typedef struct mountres3 mountres3;
  71. +
  72. +typedef char *dirpath;
  73. +
  74. +#define MOUNTPROG 100005
  75. +#define MOUNTVERS 1
  76. +
  77. +#if defined(__STDC__) || defined(__cplusplus)
  78. +#define MOUNTPROC_NULL 0
  79. +extern void * mountproc_null_1(void *, CLIENT *);
  80. +extern void * mountproc_null_1_svc(void *, struct svc_req *);
  81. +#define MOUNTPROC_MNT 1
  82. +extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
  83. +extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
  84. +extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  85. +
  86. +#else /* K&R C */
  87. +#define MOUNTPROC_NULL 0
  88. +extern void * mountproc_null_1();
  89. +extern void * mountproc_null_1_svc();
  90. +#define MOUNTPROC_MNT 1
  91. +extern fhstatus * mountproc_mnt_1();
  92. +extern fhstatus * mountproc_mnt_1_svc();
  93. +extern int mountprog_1_freeresult ();
  94. +#endif /* K&R C */
  95. +#define MOUNTVERS_POSIX 2
  96. +
  97. +#if defined(__STDC__) || defined(__cplusplus)
  98. +extern void * mountproc_null_2(void *, CLIENT *);
  99. +extern void * mountproc_null_2_svc(void *, struct svc_req *);
  100. +extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
  101. +extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
  102. +extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  103. +
  104. +#else /* K&R C */
  105. +extern void * mountproc_null_2();
  106. +extern void * mountproc_null_2_svc();
  107. +extern fhstatus * mountproc_mnt_2();
  108. +extern fhstatus * mountproc_mnt_2_svc();
  109. +extern int mountprog_2_freeresult ();
  110. +#endif /* K&R C */
  111. +#define MOUNTVERS3 3
  112. +
  113. +#if defined(__STDC__) || defined(__cplusplus)
  114. +extern void * mountproc_null_3(void *, CLIENT *);
  115. +extern void * mountproc_null_3_svc(void *, struct svc_req *);
  116. +extern mountres3 * mountproc_mnt_3(dirpath *, CLIENT *);
  117. +extern mountres3 * mountproc_mnt_3_svc(dirpath *, struct svc_req *);
  118. +extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  119. +
  120. +#else /* K&R C */
  121. +extern void * mountproc_null_3();
  122. +extern void * mountproc_null_3_svc();
  123. +extern mountres3 * mountproc_mnt_3();
  124. +extern mountres3 * mountproc_mnt_3_svc();
  125. +extern int mountprog_3_freeresult ();
  126. +#endif /* K&R C */
  127. +
  128. +/* the xdr functions */
  129. +
  130. +#if defined(__STDC__) || defined(__cplusplus)
  131. +extern bool_t xdr_fhandle (XDR *, fhandle);
  132. +extern bool_t xdr_fhandle3 (XDR *, fhandle3*);
  133. +extern bool_t xdr_fhstatus (XDR *, fhstatus*);
  134. +extern bool_t xdr_mountstat3 (XDR *, mountstat3*);
  135. +extern bool_t xdr_mountres3_ok (XDR *, mountres3_ok*);
  136. +extern bool_t xdr_mountres3 (XDR *, mountres3*);
  137. +extern bool_t xdr_dirpath (XDR *, dirpath*);
  138. +
  139. +#else /* K&R C */
  140. +extern bool_t xdr_fhandle ();
  141. +extern bool_t xdr_fhandle3 ();
  142. +extern bool_t xdr_fhstatus ();
  143. +extern bool_t xdr_mountstat3 ();
  144. +extern bool_t xdr_mountres3_ok ();
  145. +extern bool_t xdr_mountres3 ();
  146. +extern bool_t xdr_dirpath ();
  147. +
  148. +#endif /* K&R C */
  149. +
  150. +#ifdef __cplusplus
  151. +}
  152. +#endif
  153. +
  154. +#endif /* !_MOUNT_H_RPCGEN */