Commit Graph

16 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
59d37c7ec5 Fix spaces before tabs in indentation 2023-02-15 13:19:03 +01:00
Guy Harris
6c933daf0e Get rid of no-longer-used nfsuint64.
nd_uint64_t suffices - it doesn't require 8-byte alignment (XDR doesn't
provide 8-byte alignment for 64-bit quantities).
2018-06-23 00:57:39 -07:00
Guy Harris
19671cc62f Use nd_uint types for structures used to overlay packets. 2018-06-22 17:19:18 -07:00
Guy Harris
0489e347dc Use nd_ types for ONC RPC.
We don't do this for NFS; that'd require more work.  The NFS dissector
is already using EXTRACT_ calls for the NFS message.
2017-12-15 12:21:50 -08:00
Guy Harris
dbddfda2c8 More getting rid of old u_intN_t. 2014-04-23 00:45:13 -07:00
Denis Ovsienko
fe3253b9b8 remove tcpdump's own CVS keywords
Remove lots of $Header's and a few $Id's that all belong to the former
CVS repository of tcpdump itself. These keywords have been frozen since
the migration to git in late 2008.
2014-01-03 00:59:08 +04:00
Lucas C. Villa Real
c0a91acf9b Enhance NFS access request messages.
When debugging NFS operations one may find it easier to get the actual access
flags decoded rather than having to look up the NFS access flags to find which
permissions were requested by the client.

Reviewed-by: Guy Harris <guy@alum.mit.edu>
2010-01-26 12:09:24 -08:00
guy
5466ad2950 Get rid of unused and "#if 0"ed-out definitions. 2007-11-18 03:24:38 +00:00
mcr
05b7f224d8 Patches from NetBSD tree. 2007-08-29 02:31:44 +00:00
guy
fcc82f451d The "__attribute__((packed))" tag on structures causes some files not to
compile with Sun C, as "interface.h" isn't being included before the
structures are being declared.

Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun
C to generate code that's safe with unaligned accesses, as
"__attribute__" is defined as a do-nothing macro with compilers that
don't support it.

Therefore, we get rid of that tag on the structures to which it was
added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch
16-bit and 32-bit big-endian quantities from packets.  We also fix some
other references to multi-byte quantities to get rid of code that tries
to do unaligned loads on platforms that don't support them.

We also throw in a hack that makes those macros use
"__attribute__((packed))" on structures containing only one 16-bit or
32-bit integer to get the compiler to generate unaligned-safe code
rather than doing it by hand.  (GCC on SPARC produces the same code that
doing it by hand does; I don't know if GCC on any other big-endian
strict-alignment processor generates better code for that case.  On
little-endian processors, as "ntohs()" and "ntohl()" might be functions,
that might actually produce worse code.)

Fix some places to use "%u" rather than "%d" to print unsigned
quantities.
2002-12-11 07:13:49 +00:00
guy
513007a238 Give it an SCCS/RCS ID. 2002-12-11 05:04:12 +00:00
itojun
10afb02ac8 put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and so
forth while i'm here
2002-11-09 17:19:16 +00:00
assar
d171e52e94 s/nfstype/nfs_type/ to avoid conflict with system header files 2000-07-29 08:05:04 +00:00
itojun
7fdcfb6873 s/u_quad_t/u_int64_t/ (in #if 0) 2000-04-28 11:06:42 +00:00
assar
d26372d3bb (nfsquad_t): remove, it doesn't work with non-GCC 1999-11-21 16:32:55 +00:00
assar
d724608c03 incorporate NFS parsing code from NetBSD. adds support for nfsv3 1999-11-21 06:07:35 +00:00