aboutsummaryrefslogtreecommitdiffstats
path: root/packet-enip.c
AgeCommit message (Collapse)AuthorFilesLines
2004-02-25Use "tvb_get_string()" instead of allocating a (len+1)-sized buffer,Guy Harris1-12/+11
"tvb_memcpy()"ing to it, and putting in a null terminator; "tvb_get_string()" will check whether all bytes of the string are present before allocating the buffer, so that you don't leak memory if the copy throws an exception, and don't crash if the length is absurdly large. Use "tvb_memdup()" instead of allocating a buffer and "tvb_memcpy()"ing to it, so that an exception is thrown before you try to allocate the buffer (for the same reasons as listed above). Before allocating a buffer used when processing a chunk of data from a packet, get a pointer to the chunk with "tvb_get_ptr()", or check that the data is all there with "tvb_ensure_bytes_exist()", so that an exception is thrown before you try to allocate the buffer (for the same reasons as listed above). Fix up the lengths of the tvbuff used when dissecting ONC RPC opaque data with a particular dissector. svn path=/trunk/; revision=10236
2004-02-04From Magnus Hansson:Guy Harris1-64/+260
* Added decoding of Transport type/trigger * Updated service code's text to match specification * Added new vendor IDs from ODVA * Added service etc to info column, formatted info column for easier overview * Added actual time out calculation for Forward close, Unconnected send * Fixed bug, port not shown for extended addresses * Added Network Segment to EPATH decode * NOP packets not decoded as they contain Common data Format svn path=/trunk/; revision=9979
2004-01-27For EtherNet/IP-over-TCP, handle multiple PDUs in a TCP segment and PDUsGuy Harris1-22/+74
split across segment boundaries. svn path=/trunk/; revision=9882
2003-10-06Fix the handling of padding bytes.Guy Harris1-8/+9
svn path=/trunk/; revision=8620
2003-10-01Reject frames with no command (too short) or an invalid command.Guy Harris1-108/+94
Clean up white space somewhat. svn path=/trunk/; revision=8585
2003-09-02From Joakim Wiberg: change additional status display to word arrayGuy Harris1-2/+7
instead of byte array. svn path=/trunk/; revision=8339
2003-08-16From Joakim Wiberg: various fixes and cleanups, including fixes toGuy Harris1-456/+618
malformed packets caused by unconnected send and support for connected class 3 data. svn path=/trunk/; revision=8173
2003-07-25Remove some warnings from gcc.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=8085
2003-06-12Show the segment type in the line for an 8-bit logical connection pointGuy Harris1-2/+2
segment, as is done for othr logical segments (including 16-bit and 32-bit logical connection point segments). svn path=/trunk/; revision=7855
2003-06-11From Joakim Wiberg: update to the CIP dissector, reverting to theGuy Harris1-0/+2265
"EtherNet/IP" name in his original version ("IP" there is "Industrial Protocol", not "Internet Protocol"), and to the original file name, and getting rid of some unused variables. svn path=/trunk/; revision=7851