aboutsummaryrefslogtreecommitdiffstats
path: root/packet-x11.c
AgeCommit message (Collapse)AuthorFilesLines
2000-06-14In "stringCopy()", make the character temporary unsigned, so that itGuy Harris1-2/+2
doesn't get sign-extended before being handed to "isgraph()". svn path=/trunk/; revision=2065
2000-06-12Initialize 'int next_offset' to 0 instead of NULL.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=2063
2000-06-12Don't include <X11/Xlib.h> to get AllPlanes defined; that causes theGuy Harris1-18/+2
build to fail on Win32 systems. It's defined (at least in the X11R6 on my FreeBSD 3.4 system) as "((unsigned long)~0L)", which presumably means "set all the bits" - which means "set all 32 bits" in the "value_string" table where it appears, as the value member of an entry in such a table is a "guint32", so just use 0xFFFFFFFF. Get rid of other unneeded #includes as well. svn path=/trunk/; revision=2061
2000-06-12Partial tvbuffification of the X11 dissector; we construct a tvbuff fromGuy Harris1-284/+320
the top-level "compatibility" tvbuff, so that we don't blow up if we get short frames *or* misinterpret data due to, for example, trying to treat the initial client->server message in a connection as an X11 request, or interpreting the middle of a multi-frame request (e.g., a big PutImage) as if it contained requests. (I have a capture file on which the non-tvbuffified code crashed.) Attempt to dissect requests until we reach the end of the frame, even if that would take us past the end of the captured data in the frame before we reach the end of the frame; the tvbuff code will throw an exception if we go past the end of the captured data, which means it'll put a "Short frame" indication into the protocol tree, which is what we want (the frame *is* short, because the capture length was too short). Define functions taking no arguments with a "(void)" argument list, so that the compiler knows that they must not be passed any arguments. svn path=/trunk/; revision=2059
2000-06-12Christophe Tronche's X11 dissector.Guy Harris1-0/+2951
svn path=/trunk/; revision=2057