xref: /openbsd/usr.sbin/tcpdump/nfsfh.h (revision 133306f0)
1 /*	$OpenBSD: nfsfh.h,v 1.7 2000/10/03 14:31:56 ho Exp $	*/
2 
3 /*
4  * $Header: /home/cvs/src/usr.sbin/tcpdump/nfsfh.h,v 1.7 2000/10/03 14:31:56 ho Exp $
5  *
6  * nfsfh.h - NFS file handle definitions (for portable use)
7  *
8  * Jeffrey C. Mogul
9  * Digital Equipment Corporation
10  * Western Research Laboratory
11  */
12 
13 /*
14  * Internal representation of dev_t, because different NFS servers
15  * that we might be spying upon use different external representations.
16  */
17 typedef struct {
18 	u_int32_t Minor;	/* upper case to avoid clashing with macro names */
19 	u_int32_t Major;
20 } my_devt;
21 
22 #define	dev_eq(a,b)	((a.Minor == b.Minor) && (a.Major == b.Major))
23 
24 /*
25  * Many file servers now use a large file system ID.  This is
26  * our internal representation of that.
27  */
28 typedef	struct {
29 	my_devt	Fsid_dev;		/* XXX avoid name conflict with AIX */
30 	u_int32_t fsid_code;
31 } my_fsid;
32 
33 #define	fsid_eq(a,b)	((a.fsid_code == b.fsid_code) &&\
34 			 dev_eq(a.Fsid_dev, b.Fsid_dev))
35 
36 extern void Parse_fh(caddr_t *, my_fsid *, ino_t *, char **, char **, int);
37