diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2013-10-12 13:36:02 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2013-10-12 13:43:45 +0400 |
commit | 16cfec8b37de56c8f24d0a87e2149e645da3785e (patch) | |
tree | 9382f8c23108c4890b5032fca7f77139258b92af /nfsfh.h | |
parent | e237de2104bb6e4f7957768cbc056e85a26818ce (diff) | |
download | tcpdump-16cfec8b37de56c8f24d0a87e2149e645da3785e.tar.gz |
NFS: replace ino_t with u_int32_t (GH #335 pt. 1)
NFS file handle is an opaque server-issued sequence of bytes. Parse_fh()
function implements heuristics to decode file handles generated by some
NFS servers, among other information extracting the node (inode) number.
It decodes only 32-bit node numbers.
NFS implementations use ino_t C type to represent the node number. The
type size may vary across implementations/encodings and may be missing
during compile time.
Tcpdump used to have its own typedef for ino_t. Gisle Vanem points that
it caused a problem with MSVC v.16.00.40219.01 for 80x86, which defines
the same type in <sys/types.h>. This change fixes tcpdump code to use
u_int32_t and removes the typedef.
Diffstat (limited to 'nfsfh.h')
-rw-r--r-- | nfsfh.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,4 +65,4 @@ typedef struct { #define fsid_eq(a,b) ((a.fsid_code == b.fsid_code) &&\ dev_eq(a.Fsid_dev, b.Fsid_dev)) -extern void Parse_fh(const unsigned char *, int, my_fsid *, ino_t *, const char **, const char **, int); +extern void Parse_fh(const unsigned char *, int, my_fsid *, u_int32_t *, const char **, const char **, int); |