Commit Graph

4 Commits

Author SHA1 Message Date
Guy Harris
359c312cc6 Use tok2strbuf() rather than doing it by hand (with potentially-unsafe
routines).  Thanks and a tip of the Hatlo hat to OpenBSD's linker for
warning about that.
2009-10-11 12:49:05 -07:00
Guy Harris
83236cce65 Add __attribute__((format)) to the declarations of the ndo_printf,
ndo_error, and ndo_warning function pointers in a netdissect_options
structure.

Fix some errors adding that caught.

Have the RRCP dissector extract fields itself, with the EXTRACT_ macros
and a u_char pointer, rather than printing numbers from a structure
which doesn't put structure members on natural boundaries
(__attribute__((packed)) doesn't help, as not all compilers support it)
- note also that not all processors support dereferencing unaligned
pointers, e.g. SPARC - and assuming some fields are in the "right" byte
order.  Also have it check whether data is available in the packet
before referring to it.
2009-05-24 14:06:10 -07:00
gianluca
44b03896e9 Use u_intXX_t instead of uintXX_t, because the fomer ones are the ones that
we check in the configure script and *nix and the ones we define under Windows
(windump).
2008-04-11 17:21:34 +00:00
guy
1789f57c36 From Andrew Silent: Realtek Remote Control Protocol support (see
OpenRRCP.org.ru for details).
2008-02-06 10:47:53 +00:00